diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sourcemap.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sourcemap.js b/lib/sourcemap.js index c2587c88..94966a6a 100644 --- a/lib/sourcemap.js +++ b/lib/sourcemap.js @@ -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 (!(source in sources_content)) { + sources_content[source] = content; + } } : noop, toString: function() { return JSON.stringify({ |