Changed vite.build target to esnext (#2487)
This commit is contained in:
parent
8844bdb920
commit
dac0692631
1 changed files with 2 additions and 2 deletions
|
@ -164,7 +164,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp
|
|||
format: 'esm',
|
||||
},
|
||||
},
|
||||
target: 'es2020', // must match an esbuild target
|
||||
target: 'esnext', // must match an esbuild target
|
||||
},
|
||||
plugins: [
|
||||
vitePluginNewBuild(input, internals, 'mjs'),
|
||||
|
@ -204,7 +204,7 @@ async function clientBuild(opts: StaticBuildOptions, internals: BuildInternals,
|
|||
},
|
||||
preserveEntrySignatures: 'exports-only',
|
||||
},
|
||||
target: 'es2020', // must match an esbuild target
|
||||
target: 'esnext', // must match an esbuild target
|
||||
},
|
||||
plugins: [
|
||||
vitePluginNewBuild(input, internals, 'js'),
|
||||
|
|
Loading…
Reference in a new issue