aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-21 04:05:48 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-21 04:05:48 +0800
commit05d45e7146ce862ebf7318db636b1a1652348243 (patch)
tree72282d7d4499c985a53c66f44af47db285812ac1 /packages/instant
parentd2dd5f93d21404ee5424792a4e29e843140a7fa1 (diff)
downloaddexon-sol-tools-05d45e7146ce862ebf7318db636b1a1652348243.tar
dexon-sol-tools-05d45e7146ce862ebf7318db636b1a1652348243.tar.gz
dexon-sol-tools-05d45e7146ce862ebf7318db636b1a1652348243.tar.bz2
dexon-sol-tools-05d45e7146ce862ebf7318db636b1a1652348243.tar.lz
dexon-sol-tools-05d45e7146ce862ebf7318db636b1a1652348243.tar.xz
dexon-sol-tools-05d45e7146ce862ebf7318db636b1a1652348243.tar.zst
dexon-sol-tools-05d45e7146ce862ebf7318db636b1a1652348243.zip
Use sourcemap loader
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/webpack.config.js10
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: {