Skip to content

Commit

Permalink
preserve function names in minified code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion authored and JakeChampion committed Apr 3, 2019
1 parent ad3b29f commit 100ee97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/node/buildsources.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class Polyfill {

const minified = uglify.minify(source, {
fromString: true,
compress: { screw_ie8: false },
compress: { screw_ie8: false, keep_fnames: true },
mangle: { screw_ie8: false },
output: { screw_ie8: false, beautify: false }
});
Expand All @@ -239,7 +239,7 @@ class Polyfill {

const minified = uglify.minify(source, {
fromString: true,
compress: { screw_ie8: false, expression: true },
compress: { screw_ie8: false, expression: true, keep_fnames: true },
mangle: { screw_ie8: false },
output: { screw_ie8: false, beautify: false, semicolons: false }
});
Expand Down

0 comments on commit 100ee97

Please sign in to comment.