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
1 changed files with 3 additions and 3 deletions

View File

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