fix(kit): revert back to esnext target

This commit is contained in:
Daniel Roe 2024-06-10 21:11:31 +01:00
parent dccf2e5f35
commit 7bb02735e7
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -135,7 +135,7 @@ export async function _generateTypes (nuxt: Nuxt) {
/* Base options: */ /* Base options: */
esModuleInterop: true, esModuleInterop: true,
skipLibCheck: true, skipLibCheck: true,
target: 'es2022', target: 'ESNext',
allowJs: true, allowJs: true,
resolveJsonModule: true, resolveJsonModule: true,
moduleDetection: 'force', moduleDetection: 'force',
@ -147,11 +147,11 @@ export async function _generateTypes (nuxt: Nuxt) {
forceConsistentCasingInFileNames: true, forceConsistentCasingInFileNames: true,
noImplicitOverride: true, noImplicitOverride: true,
/* If NOT transpiling with TypeScript: */ /* If NOT transpiling with TypeScript: */
module: hasTypescriptVersionWithModulePreserve ? 'preserve' : 'es2022', module: hasTypescriptVersionWithModulePreserve ? 'preserve' : 'ESNext',
noEmit: true, noEmit: true,
/* If your code runs in the DOM: */ /* If your code runs in the DOM: */
lib: [ lib: [
'es2022', 'ESNext',
'dom', 'dom',
'dom.iterable', 'dom.iterable',
], ],