aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/webpack.config.js
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-09 17:18:15 +0800
committerFabio Berger <me@fabioberger.com>2018-03-09 17:18:15 +0800
commit974c0d2b958b6770915c86ac231375cbe2ab7893 (patch)
treebb7d68a4908e1c57cab23f137037434652908d26 /packages/react-docs/webpack.config.js
parentd1fc2a115ee7e9f00cebceab1dcfee32c3116e79 (diff)
downloaddexon-sol-tools-974c0d2b958b6770915c86ac231375cbe2ab7893.tar
dexon-sol-tools-974c0d2b958b6770915c86ac231375cbe2ab7893.tar.gz
dexon-sol-tools-974c0d2b958b6770915c86ac231375cbe2ab7893.tar.bz2
dexon-sol-tools-974c0d2b958b6770915c86ac231375cbe2ab7893.tar.lz
dexon-sol-tools-974c0d2b958b6770915c86ac231375cbe2ab7893.tar.xz
dexon-sol-tools-974c0d2b958b6770915c86ac231375cbe2ab7893.tar.zst
dexon-sol-tools-974c0d2b958b6770915c86ac231375cbe2ab7893.zip
Fix isse of sourceMapLoader looking at node_modules
Diffstat (limited to 'packages/react-docs/webpack.config.js')
-rw-r--r--packages/react-docs/webpack.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/react-docs/webpack.config.js b/packages/react-docs/webpack.config.js
index 245aee6e3..83eb4e49e 100644
--- a/packages/react-docs/webpack.config.js
+++ b/packages/react-docs/webpack.config.js
@@ -24,6 +24,10 @@ module.exports = {
{
test: /\.js$/,
loader: 'source-map-loader',
+ exclude: [
+ // instead of /\/node_modules\//
+ path.join(process.cwd(), 'node_modules'),
+ ],
},
{
test: /\.tsx?$/,