actualizar dependencias de yarn y agregar un coso
que detecta dependencias ciruclares en el javascript
This commit is contained in:
parent
570752edec
commit
c9d0fb87a4
3 changed files with 1272 additions and 1742 deletions
|
@ -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()
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue