mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-19 23:17:16 +03:00
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:
parent
95d6c1cabf
commit
22e8b2ec0f
@ -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}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user