Browse Source

update webpack settings

Yuki Takei 4 years ago
parent
commit
96a9130f1f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/app/config/webpack.common.js

+ 4 - 4
packages/app/config/webpack.common.js

@@ -79,11 +79,11 @@ module.exports = (options) => {
         {
           test: /.(jsx?|tsx?)$/,
           exclude: {
-            test: path.resolve(__dirname, '../node_modules'),
+            test: /node_modules/,
             exclude: [ // include as a result
-              { test: path.resolve(__dirname, '../node_modules/growi-plugin-') },
-              path.resolve(__dirname, '../node_modules/growi-commons'),
-              path.resolve(__dirname, '../node_modules/codemirror/src'),
+              { test: /node_modules\/growi-plugin-/ },
+              /node_modules\/growi-commons/,
+              /node_modules\/codemirror/,
             ],
           },
           use: [{