Skip to content

Commit b2620a8

Browse files
committed
support json source maps - fixes webpack-contrib#15
1 parent 56aa961 commit b2620a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ module.exports = function (source, map) {
1414
annotation: false
1515
}
1616
};
17+
18+
if (typeof map === 'string') {
19+
map = JSON.parse(map);
20+
}
21+
1722
if ( map && map.mappings ) opts.map.prev = map;
1823
if ( params.safe ) opts.safe = true;
1924

0 commit comments

Comments
 (0)