Skip to content

Commit d4b19a9

Browse files
committed
Merge pull request webpack-contrib#6 from badsyntax/fix-mappings-error
Fixed invalid sourcemap exception
2 parents 9722c32 + 8fe364e commit d4b19a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (source, map) {
1515
annotation: false
1616
}
1717
};
18-
if ( map ) opts.map.prev = map;
18+
if ( map && map.mappings ) opts.map.prev = map;
1919
if ( params.safe ) opts.safe = true;
2020

2121
var plugins = this.options.postcss;

0 commit comments

Comments
 (0)