Add Source Map support to e2e deltas in chrome debugger

Reviewed By: jeanlauliac

Differential Revision: D5917380

fbshipit-source-id: 31391bc03c420b8e7af5c840fbea2fb0dd5f7bbc
This commit is contained in:
Rafael Oleza authored and Facebook Github Bot committed 2017-09-29 05:45:38 -07:00
1 parent ace7273538
commit 15130d5fa2
1 file changed
+5 -1
@@ -49,7 +49,11 @@
URL.revokeObjectURL(cachedBundle.url);
}
const blobContent = deltaPatcher.getAllModules();
// To make Source Maps work correctly, we need to add a newline between
// modules.
const blobContent = deltaPatcher
.getAllModules()
.map(module => module + '\n');
// Build the blob with the whole JS bundle.
const blob = new Blob(blobContent, {