5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-03 14:07:05 +00:00

actualizar dependencias de yarn y agregar un coso

que detecta dependencias ciruclares en el javascript
This commit is contained in:
void 2021-02-12 22:17:58 +00:00
parent 570752edec
commit c9d0fb87a4
3 changed files with 1272 additions and 1742 deletions

View file

@ -1,6 +1,7 @@
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
const CircularDependencyPlugin = require('circular-dependency-plugin');
const path = require("path");
const environment = require('./environment')
@ -13,7 +14,18 @@ environment.plugins.append(
},
// non-async so type checking will block compilation
async: false,
})
}),
);
environment.plugins.append(
"CircularDependencyPlugin",
new CircularDependencyPlugin({
exclude: /node_modules/,
failOnError: false,
// allow import cycles that include an asyncronous import,
// e.g. via import(/* webpackMode: "weak" */ './file.js')
allowAsyncCycles: false,
cwd: process.cwd(),
}),
)
module.exports = environment.toWebpackConfig()

View file

@ -17,6 +17,7 @@
},
"devDependencies": {
"@babel/preset-typescript": "^7.12.13",
"circular-dependency-plugin": "^5.2.2",
"fork-ts-checker-webpack-plugin": "^6.1.0",
"typescript": "^4.1.5",
"webpack-dev-server": "^3.11.0"

2999
yarn.lock

File diff suppressed because it is too large Load diff