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:
parent
d172405244
commit
970f31c292
|
@ -150,7 +150,7 @@
|
|||
names: [],
|
||||
mappings: buffer
|
||||
};
|
||||
if (options.inlineMap) {
|
||||
if (options.sourceMap || options.inlineMap) {
|
||||
v3.sourcesContent = [code];
|
||||
}
|
||||
return v3;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue