Fix overwriting existing sourcesContent

This commit is contained in:
Jimb Esser 2021-01-18 08:15:48 -08:00
parent e23a10f7f9
commit c510232907

View File

@ -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({