From 7bb02735e7883ec14035cf86b6a9055bbcbc6587 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 10 Jun 2024 21:11:31 +0100 Subject: [PATCH] fix(kit): revert back to `esnext` target --- packages/kit/src/template.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/kit/src/template.ts b/packages/kit/src/template.ts index 829551de60..194434f69f 100644 --- a/packages/kit/src/template.ts +++ b/packages/kit/src/template.ts @@ -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', ],