Skip to content

Commit c501b5d

Browse files
committed
fixed webpack#2011
1 parent 1021faf commit c501b5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/optimize/UglifyJsPlugin.js

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

0 commit comments

Comments
 (0)