aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website/webpack.config.js')
-rw-r--r--packages/website/webpack.config.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/website/webpack.config.js b/packages/website/webpack.config.js
index f9abeb27c..b5e9cf6dd 100644
--- a/packages/website/webpack.config.js
+++ b/packages/website/webpack.config.js
@@ -1,6 +1,6 @@
const path = require('path');
const webpack = require('webpack');
-const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
entry: ['./ts/index.tsx'],
@@ -25,6 +25,11 @@ module.exports = {
{
test: /\.js$/,
loader: 'source-map-loader',
+ exclude: [
+ // instead of /\/node_modules\//
+ path.join(process.cwd(), 'node_modules'),
+ path.join(process.cwd(), '../..', 'node_modules'),
+ ],
},
{
test: /\.tsx?$/,