Skip to content

Commit

Permalink
Fix sourcemaps in dev (#225)
Browse files Browse the repository at this point in the history
* Fix sourcemaps in dev

* Update makeReactNativeConfig.js
  • Loading branch information
satya164 authored and grabbou committed Sep 8, 2017
1 parent 98253df commit c400ce4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/makeReactNativeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit c400ce4

Please sign in to comment.