mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
fix(kit): apply preferred options for esbuild transpilation (#22468)
This commit is contained in:
parent
c11585e713
commit
4d84c714e0
@ -121,6 +121,8 @@ export async function writeTypes (nuxt: Nuxt) {
|
|||||||
module: 'ESNext',
|
module: 'ESNext',
|
||||||
moduleResolution: nuxt.options.experimental?.typescriptBundlerResolution ? 'Bundler' : 'Node',
|
moduleResolution: nuxt.options.experimental?.typescriptBundlerResolution ? 'Bundler' : 'Node',
|
||||||
skipLibCheck: true,
|
skipLibCheck: true,
|
||||||
|
isolatedModules: true,
|
||||||
|
useDefineForClassFields: true,
|
||||||
strict: nuxt.options.typescript?.strict ?? true,
|
strict: nuxt.options.typescript?.strict ?? true,
|
||||||
allowJs: true,
|
allowJs: true,
|
||||||
noEmit: true,
|
noEmit: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user