Skip to content

Commit cb56dcf

Browse files
committed
Generate local source map
1 parent 89cd5f3 commit cb56dcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/process.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,8 @@ module.exports = function (src, filePath, jestConfig) {
127127
}
128128
}
129129

130-
return { code: output, map }
130+
const base64Map = new Buffer(JSON.stringify(map)).toString('base64')
131+
output += `//# sourceMappingURL=data:application/json;charset=utf-8;base64,${base64Map}`
132+
133+
return { code: output }
131134
}

0 commit comments

Comments
 (0)