Update esbuild to 0.14.28, use es2020 target

This commit is contained in:
Fedor Indutny 2022-03-28 18:47:29 -07:00 committed by GitHub
parent 3b5cc26fec
commit 8b36e37d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 106 additions and 106 deletions

View file

@ -12,7 +12,7 @@ const isProd = process.argv.some(argv => argv === '-prod' || argv === '--prod');
const nodeDefaults = {
platform: 'node',
target: 'node16',
target: 'es2020',
sourcemap: isProd ? false : 'inline',
// Otherwise React components get renamed
// See: https://github.com/evanw/esbuild/issues/1147