瀏覽代碼

Remove the circular dependency plugin

The low hanging fruit has been pluck
JC Brand 1 年之前
父節點
當前提交
3fc70ca04e
共有 3 個文件被更改,包括 0 次插入21 次删除
  1. 0 13
      package-lock.json
  2. 0 1
      package.json
  3. 0 7
      webpack/webpack.build.js

+ 0 - 13
package-lock.json

@@ -39,7 +39,6 @@
         "autoprefixer": "^10.4.5",
         "babel-loader": "^9.1.0",
         "bootstrap.native-loader": "2.0.0",
-        "circular-dependency-plugin": "^5.2.2",
         "clean-css-cli": "^5.6.2",
         "copy-webpack-plugin": "^11.0.0",
         "css-loader": "^6.7.1",
@@ -3642,18 +3641,6 @@
       "integrity": "sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A==",
       "dev": true
     },
-    "node_modules/circular-dependency-plugin": {
-      "version": "5.2.2",
-      "resolved": "https://registry.npmjs.org/circular-dependency-plugin/-/circular-dependency-plugin-5.2.2.tgz",
-      "integrity": "sha512-g38K9Cm5WRwlaH6g03B9OEz/0qRizI+2I7n+Gz+L5DxXJAPAiWQvwlYNm1V1jkdpUv95bOe/ASm2vfi/G560jQ==",
-      "dev": true,
-      "engines": {
-        "node": ">=6.0.0"
-      },
-      "peerDependencies": {
-        "webpack": ">=4.0.1"
-      }
-    },
     "node_modules/cjk-regex": {
       "version": "2.0.1",
       "resolved": "https://registry.npmjs.org/cjk-regex/-/cjk-regex-2.0.1.tgz",

+ 0 - 1
package.json

@@ -76,7 +76,6 @@
     "autoprefixer": "^10.4.5",
     "babel-loader": "^9.1.0",
     "bootstrap.native-loader": "2.0.0",
-    "circular-dependency-plugin": "^5.2.2",
     "clean-css-cli": "^5.6.2",
     "copy-webpack-plugin": "^11.0.0",
     "css-loader": "^6.7.1",

+ 0 - 7
webpack/webpack.build.js

@@ -1,6 +1,5 @@
 /* global __dirname, module, process */
 const ASSET_PATH = process.env.ASSET_PATH || '/dist/'; // eslint-disable-line no-process-env
-const CircularDependencyPlugin = require('circular-dependency-plugin');
 const CopyWebpackPlugin = require('copy-webpack-plugin');
 const MiniCssExtractPlugin = require('mini-css-extract-plugin');
 const common = require("./webpack.common.js");
@@ -29,12 +28,6 @@ const plugins = [
     new webpack.DefinePlugin({ // This makes it possible for us to safely use env vars on our code
         'process.env.ASSET_PATH': JSON.stringify(ASSET_PATH)
     }),
-    new CircularDependencyPlugin({
-      exclude: /node_modules/,
-      failOnError: false,
-      allowAsyncCycles: false,
-      cwd: process.cwd(),
-    })
 ];
 
 module.exports = merge(common, {