Fix overwriting existing sourcesContent
This commit is contained in:
parent
e23a10f7f9
commit
c510232907
|
|
@ -144,7 +144,9 @@ function SourceMap(options) {
|
|||
add(source, gen_line, gen_col, orig_line, orig_col, name);
|
||||
} : add,
|
||||
setSourceContent: sources_content ? function(source, content) {
|
||||
sources_content[source] = content;
|
||||
if (!sources_content[source]) {
|
||||
sources_content[source] = content;
|
||||
}
|
||||
} : noop,
|
||||
toString: function() {
|
||||
return JSON.stringify({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user