mirror of https://github.com/status-im/metro.git
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:
parent
36b2f8d67f
commit
5ee6de217d
|
@ -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,
|
||||
|
|
|
@ -1153,10 +1153,7 @@ class Server {
|
|||
'entryModuleOnly',
|
||||
false,
|
||||
),
|
||||
generateSourceMaps:
|
||||
minify ||
|
||||
!dev ||
|
||||
this._getBoolOptionFromQuery(urlObj.query, 'babelSourcemap', false),
|
||||
generateSourceMaps: false,
|
||||
assetPlugins,
|
||||
onProgress: null,
|
||||
unbundle: false,
|
||||
|
|
Loading…
Reference in New Issue