From 0ecf9538a3b470d63b65f536d55b3644bc205802 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Fri, 19 Jul 2019 16:28:40 +0300 Subject: [PATCH] webpack config exclude option uses regex --- webpack.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 763269662..7c5596ce8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -14,9 +14,7 @@ module.exports = { rules: [ { test: /\.js$/, - exclude: [ - path.resolve(__dirname, 'node_modules') - ], + exclude: /node_modules/, use: { loader: 'babel-loader', options: {