Skip to content

Commit b3cee51

Browse files
committed
No need to tringify source maps before caching
source-map-support works fine if the map is already an object.
1 parent a423a77 commit b3cee51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if (inputSourceMap) {
7070

7171
// include test file
7272
var transpiled = babel.transformFileSync(testPath, options);
73-
sourceMapCache[testPath] = JSON.stringify(transpiled.map);
73+
sourceMapCache[testPath] = transpiled.map;
7474
requireFromString(transpiled.code, testPath, {
7575
appendPaths: module.paths
7676
});

0 commit comments

Comments
 (0)