fix(kit): apply preferred options for esbuild transpilation (#22468)

This commit is contained in:
Daniel Roe 2023-08-03 16:38:31 +01:00 committed by GitHub
parent c11585e713
commit 4d84c714e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,