Skip to content

Commit 15130d5

Browse files
rafecafacebook-github-bot
authored andcommitted
Add Source Map support to e2e deltas in chrome debugger
Reviewed By: jeanlauliac Differential Revision: D5917380 fbshipit-source-id: 31391bc03c420b8e7af5c840fbea2fb0dd5f7bbc
1 parent ace7273 commit 15130d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@
4949
URL.revokeObjectURL(cachedBundle.url);
5050
}
5151

52-
const blobContent = deltaPatcher.getAllModules();
52+
// To make Source Maps work correctly, we need to add a newline between
53+
// modules.
54+
const blobContent = deltaPatcher
55+
.getAllModules()
56+
.map(module => module + '\n');
5357

5458
// Build the blob with the whole JS bundle.
5559
const blob = new Blob(blobContent, {

0 commit comments

Comments
 (0)