Skip to content

Commit d4573e5

Browse files
committed
fixed webpack#2011
1 parent 560e175 commit d4573e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/optimize/UglifyJsPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
9191
ast.figure_out_scope();
9292
ast.compute_char_frequency(options.mangle || {});
9393
ast.mangle_names(options.mangle || {});
94-
if(options.mangle.props) {
94+
if(options.mangle && options.mangle.props) {
9595
uglify.mangle_properties(ast, options.mangle.props);
9696
}
9797
}

0 commit comments

Comments
 (0)