preserve GeneratorFunction instead of all function names

This commit is contained in:
Kyle Shockey
2018-07-10 23:19:06 -05:00
parent 4b44505378
commit db9dde85e9
+5 -2
View File
@@ -71,10 +71,13 @@ module.exports = function(rules, options) {
plugins.push(
new UglifyJsPlugin({
uglifyOptions: {
mangle: specialOptions.mangle,
mangle: specialOptions.mangle ? {
reserved: ["GeneratorFunction"]
} : false,
compress: specialOptions.mangle,
beautify: !specialOptions.mangle,
keep_fnames: true
},
sourceMap: true,
}),
new webpack.LoaderOptionsPlugin({