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 2017-09-29 05:38:15 -07:00 committed by Facebook Github Bot
parent ace7273538
commit 15130d5fa2
1 changed files with 5 additions and 1 deletions

View File

@ -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, {