Skip to content

Commit 7bb0273

Browse files
committed
fix(kit): revert back to esnext target
1 parent dccf2e5 commit 7bb0273

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/kit/src/template.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export async function _generateTypes (nuxt: Nuxt) {
135135
/* Base options: */
136136
esModuleInterop: true,
137137
skipLibCheck: true,
138-
target: 'es2022',
138+
target: 'ESNext',
139139
allowJs: true,
140140
resolveJsonModule: true,
141141
moduleDetection: 'force',
@@ -147,11 +147,11 @@ export async function _generateTypes (nuxt: Nuxt) {
147147
forceConsistentCasingInFileNames: true,
148148
noImplicitOverride: true,
149149
/* If NOT transpiling with TypeScript: */
150-
module: hasTypescriptVersionWithModulePreserve ? 'preserve' : 'es2022',
150+
module: hasTypescriptVersionWithModulePreserve ? 'preserve' : 'ESNext',
151151
noEmit: true,
152152
/* If your code runs in the DOM: */
153153
lib: [
154-
'es2022',
154+
'ESNext',
155155
'dom',
156156
'dom.iterable',
157157
],

0 commit comments

Comments
 (0)