Skip to content

Commit

Permalink
Add Source Map support to e2e deltas in chrome debugger
Browse files Browse the repository at this point in the history
Reviewed By: jeanlauliac

Differential Revision: D5917380

fbshipit-source-id: 31391bc03c420b8e7af5c840fbea2fb0dd5f7bbc
  • Loading branch information
rafeca authored and facebook-github-bot committed Sep 29, 2017
1 parent ace7273 commit 15130d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js
Expand Up @@ -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, {
Expand Down

0 comments on commit 15130d5

Please sign in to comment.