Permalink
Browse files

Add Source Map support to e2e deltas in chrome debugger

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 15130d5fa2b00b5ffb3393c824d32cbcfac0b858
Showing with 5 additions and 1 deletion.
  1. +5 −1 local-cli/server/util/debugger-ui/deltaUrlToBlobUrl.js
@@ -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, {

0 comments on commit 15130d5

Please sign in to comment.