1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00

Merge pull request #365 from thewhodidthis/nf#364--target

scripts: override esbuild default target
This commit is contained in:
Alain Pitiot 2021-06-04 10:21:10 +02:00 committed by GitHub
commit a27387e706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,5 +28,10 @@ const [,,, dir = dirMaybe || 'out', version = versionMaybe || pkg.version] = pro
bundle: true,
sourcemap: true,
entryPoints: ['src/index.js'],
minify: true
minify: true,
target: [
// https://github.com/evanw/esbuild/issues/121#issuecomment-646956379
'es2017',
'node14',
]
});