Преглед на файлове

update webpack settings

Yuki Takei преди 4 години
родител
ревизия
96a9130f1f
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  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?)$/,
           test: /.(jsx?|tsx?)$/,
           exclude: {
           exclude: {
-            test: path.resolve(__dirname, '../node_modules'),
+            test: /node_modules/,
             exclude: [ // include as a result
             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: [{
           use: [{