Skip to content

Commit d8dbc5e

Browse files
committed
less code
1 parent 142bae1 commit d8dbc5e

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
@@ -44,7 +44,7 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
4444
compilation.assets[file] = asset.__UglifyJsPlugin;
4545
return;
4646
}
47-
var inputSourceMap = compilation.assets[file].map();
47+
var inputSourceMap = asset.map();
4848
var sourceMap = new SourceMapConsumer(inputSourceMap);
4949
uglify.AST_Node.warn_function = function(warning) {
5050
var match = /\[.+:([0-9]+),([0-9]+)\]/.exec(warning);

0 commit comments

Comments
 (0)