Yuki Takei 4 лет назад
Родитель
Сommit
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?)$/,
           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: [{