mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(kit): revert back to esnext
target
This commit is contained in:
parent
dccf2e5f35
commit
7bb02735e7
@ -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',
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user