From c400ce4619aa4bc4e03acfd7d1c35dc316da3c27 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Fri, 8 Sep 2017 13:37:45 +0200 Subject: [PATCH] Fix sourcemaps in dev (#225) * Fix sourcemaps in dev * Update makeReactNativeConfig.js --- src/utils/makeReactNativeConfig.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils/makeReactNativeConfig.js b/src/utils/makeReactNativeConfig.js index fd068deb..226de030 100644 --- a/src/utils/makeReactNativeConfig.js +++ b/src/utils/makeReactNativeConfig.js @@ -62,11 +62,7 @@ const getDefaultConfig = ({ */ require.resolve('./polyfillEnvironment.js'), ], - /** - * `cheap-module-source-map` is faster than `source-map`, - * but it doesn't have column mappings - */ - devtool: dev ? 'cheap-module-source-map' : 'source-map', + devtool: bundle ? 'source-map' : 'eval-source-map', output: { path: path.join(root, 'dist'), filename: `index.${platform}.bundle`,