Fix #4342: Always output `sourcesContent` property as part of source map, whether inline map or written-to-disk map (#4698)

This commit is contained in:
Geoffrey Booth 2017-09-11 22:38:48 -07:00 committed by GitHub
parent d172405244
commit 970f31c292
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@
names: [],
mappings: buffer
};
if (options.inlineMap) {
if (options.sourceMap || options.inlineMap) {
v3.sourcesContent = [code];
}
return v3;

View File

@ -133,7 +133,7 @@ Produce the canonical JSON object format for a "v3" source map.
names: []
mappings: buffer
v3.sourcesContent = [code] if options.inlineMap
v3.sourcesContent = [code] if options.sourceMap or options.inlineMap
v3