Merge pull request #17955 from atom/mb-keep-fnames

Preserve function names when minifying startup snapshot
This commit is contained in:
Max Brunsfeld
2018-08-30 12:27:49 -07:00
committed by GitHub

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}
})