You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compilation.warnings.push(newError(file+" from UglifyJs\n"+warnings.join("\n")));
90
90
}
91
91
}catch(err){
92
-
err.file=file;
93
-
compilation.errors.push(err);
92
+
if(err.line){
93
+
varoriginal=sourceMap.originalPositionFor({
94
+
line: err.line,
95
+
column: err.col
96
+
});
97
+
if(original&&original.source){
98
+
compilation.errors.push(newError(file+" from UglifyJs\n"+err.message+" ["+requestShortener.shorten(original.source)+":"+original.line+","+original.column+"]"));
99
+
}else{
100
+
compilation.errors.push(newError(file+" from UglifyJs\n"+err.message+" ["+file+":"+err.line+","+err.col+"]"));
101
+
}
102
+
}else
103
+
compilation.errors.push(newError(file+" from UglifyJs\n"+err.message));
0 commit comments