Assume missing map names means name hasn't changed
If the original source map doesn't specify a name for location then assume that the name hasn't changed from the original source. In that case, use the current name detected by UglifyJS' AST.
This commit is contained in:
parent
bf30dc3038
commit
3686889283
|
|
@ -67,7 +67,9 @@ function SourceMap(options) {
|
||||||
source = info.source;
|
source = info.source;
|
||||||
orig_line = info.line;
|
orig_line = info.line;
|
||||||
orig_col = info.column;
|
orig_col = info.column;
|
||||||
name = info.name;
|
if (info.name) {
|
||||||
|
name = info.name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
generator.addMapping({
|
generator.addMapping({
|
||||||
generated : { line: gen_line + options.dest_line_diff, column: gen_col },
|
generated : { line: gen_line + options.dest_line_diff, column: gen_col },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user