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

View File

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