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 коммит произвёл Facebook Github Bot
Родитель ace7273538
Коммит 15130d5fa2
1 изменённых файлов: 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, {