Skip to content

Commit 7fbb938

Browse files
committed
Merge pull request webpack-contrib#16 from jantimon/fixes/less-sourcemaps
support json source maps - fixes webpack-contrib#15
2 parents 56aa961 + 542fbc2 commit 7fbb938

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)