Skip to content

Commit b2830de

Browse files
committed
Fix sourcesContent
1 parent 86ddc14 commit b2830de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ module.exports = function(source, map) {
5050
const compiled = compile(processed.toString(), compileOptions);
5151
let { js, css, warnings } = compiled;
5252

53+
if (!js.map.sourcesContent) js.map.sourcesContent = [ source ];
54+
5355
warnings.forEach(
5456
options.onwarn
5557
? warning => options.onwarn(warning, handleWarning)

0 commit comments

Comments
 (0)