update esbuild target
This commit is contained in:
parent
be97a79cb2
commit
becb464715
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ async function appendExtraModules(extras, outfile, minify = false) {
|
|||
const result = await transform(code, {
|
||||
minify: true,
|
||||
loader: 'js',
|
||||
target: 'es2020',
|
||||
target: 'es2022',
|
||||
});
|
||||
return result.code;
|
||||
})
|
||||
|
|
@ -92,7 +92,7 @@ const rec = {
|
|||
minify: isProd, // false for dev, true for prod
|
||||
platform: 'browser',
|
||||
sourcemap: false,
|
||||
target: 'es2020',
|
||||
target: 'es2022',
|
||||
};
|
||||
|
||||
async function buildApp() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue