diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-21 04:05:48 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-21 04:05:48 +0800 |
commit | 05d45e7146ce862ebf7318db636b1a1652348243 (patch) | |
tree | 72282d7d4499c985a53c66f44af47db285812ac1 | |
parent | d2dd5f93d21404ee5424792a4e29e843140a7fa1 (diff) | |
download | dexon-0x-contracts-05d45e7146ce862ebf7318db636b1a1652348243.tar dexon-0x-contracts-05d45e7146ce862ebf7318db636b1a1652348243.tar.gz dexon-0x-contracts-05d45e7146ce862ebf7318db636b1a1652348243.tar.bz2 dexon-0x-contracts-05d45e7146ce862ebf7318db636b1a1652348243.tar.lz dexon-0x-contracts-05d45e7146ce862ebf7318db636b1a1652348243.tar.xz dexon-0x-contracts-05d45e7146ce862ebf7318db636b1a1652348243.tar.zst dexon-0x-contracts-05d45e7146ce862ebf7318db636b1a1652348243.zip |
Use sourcemap loader
-rw-r--r-- | packages/instant/webpack.config.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js index 2375bbd31..e472824f5 100644 --- a/packages/instant/webpack.config.js +++ b/packages/instant/webpack.config.js @@ -77,6 +77,7 @@ module.exports = (env, argv) => { HEAP_ANALYTICS_ID: getHeapAnalyticsId(environmentName), ROLLBAR_ENVIRONMENT: JSON.stringify(environmentName), ROLLBAR_CLIENT_TOKEN: JSON.stringify(process.env.INSTANT_ROLLBAR_CLIENT_TOKEN), + ROLLBAR_FORCE_DEVELOPMENT_REPORT: JSON.stringify(process.env.INSTANT_ROLLBAR_FORCE_DEVELOPMENT_REPORT), }, }), ]; @@ -113,6 +114,15 @@ module.exports = (env, argv) => { test: /\.svg$/, loader: 'svg-react-loader', }, + { + test: /\.js$/, + loader: 'source-map-loader', + exclude: [ + // instead of /\/node_modules\// + path.join(process.cwd(), 'node_modules'), + path.join(process.cwd(), '../..', 'node_modules'), + ], + }, ], }, devServer: { |