Changed vite.build target to esnext (#2487)

This commit is contained in:
Rafid Muhymin Wafi 2022-01-29 06:56:47 +06:00 committed by GitHub
parent 8844bdb920
commit dac0692631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'),