Disable using babel-generated sourcemaps from the metro bundler server

Reviewed By: jeanlauliac

Differential Revision: D5785354

fbshipit-source-id: be1a5c114b12af356804ff3b4ed6c4263d66fa0c
This commit is contained in:
Rafael Oleza 2017-09-11 08:22:23 -07:00 committed by Facebook Github Bot
parent 36b2f8d67f
commit 5ee6de217d
2 changed files with 3 additions and 6 deletions

View File

@ -489,7 +489,7 @@ describe('processRequest', () => {
entryFile: 'path/to/foo.js',
entryModuleOnly: false,
excludeSource: true,
generateSourceMaps: true,
generateSourceMaps: false,
hot: true,
inlineSourceMap: false,
isolateModuleIDs: false,
@ -514,7 +514,7 @@ describe('processRequest', () => {
entryFile: 'path/to/foo.js',
entryModuleOnly: false,
excludeSource: false,
generateSourceMaps: true,
generateSourceMaps: false,
hot: true,
inlineSourceMap: false,
isolateModuleIDs: false,

View File

@ -1153,10 +1153,7 @@ class Server {
'entryModuleOnly',
false,
),
generateSourceMaps:
minify ||
!dev ||
this._getBoolOptionFromQuery(urlObj.query, 'babelSourcemap', false),
generateSourceMaps: false,
assetPlugins,
onProgress: null,
unbundle: false,