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

scripts: tweak js minification options to leave identifiers as is

This commit is contained in:
Sotiri Bakagiannis 2021-06-21 16:57:44 +01:00
parent f0d42a811e
commit 1dc3eabd0d

View File

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