8000 fix(kit): apply preferred options for esbuild transpilation (#22468) · nuxt/nuxt@4d84c71 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d84c71

Browse files
authored
fix(kit): apply preferred options for esbuild transpilation (#22468)
1 parent c11585e commit 4d84c71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/kit/src/template.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ export async function writeTypes (nuxt: Nuxt) {
121121
module: 'ESNext',
122122
moduleResolution: nuxt.options.experimental?.typescriptBundlerResolution ? 'Bundler' : 'Node',
123123
skipLibCheck: true,
124+
isolatedModules: true,
125+
useDefineForClassFields: true,
124126
strict: nuxt.options.typescript?.strict ?? true,
125127
allowJs: true,
126128
noEmit: true,

0 commit comments

Comments
 (0)
0