From 4d84c714e0d9d1886ea6f18a331e594b0de4f66c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 3 Aug 2023 16:38:31 +0100 Subject: [PATCH] fix(kit): apply preferred options for esbuild transpilation (#22468) --- packages/kit/src/template.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/kit/src/template.ts b/packages/kit/src/template.ts index 7e5d504842..87eaa2b855 100644 --- a/packages/kit/src/template.ts +++ b/packages/kit/src/template.ts @@ -121,6 +121,8 @@ export async function writeTypes (nuxt: Nuxt) { module: 'ESNext', moduleResolution: nuxt.options.experimental?.typescriptBundlerResolution ? 'Bundler' : 'Node', skipLibCheck: true, + isolatedModules: true, + useDefineForClassFields: true, strict: nuxt.options.typescript?.strict ?? true, allowJs: true, noEmit: true,