Preserve function names when minifying startup snapshot

The `cson-parser` module relies on the Function.prototype.name because
it uses classes that are written in CoffeeScript.
This commit is contained in:
Max Brunsfeld 2018-08-30 12:03:02 -07:00
parent 95d6c1cabf
commit 22e8b2ec0f

View File

@ -72,6 +72,7 @@ module.exports = function (packagedAppPath) {
process.stdout.write('Minifying startup script')
const minification = terser.minify(snapshotScript, {
keep_fnames: true,
keep_classnames: true,
compress: {keep_fargs: true, keep_infinity: true}
})