fix(build,dev) disable circular dependency detector

It can be enabled with the env var, there are just too many positives at
the moment for it to be useful.
This commit is contained in:
Saúl Ibarra Corretgé 2022-06-24 11:23:58 +02:00 committed by Saúl Ibarra Corretgé
parent e7c5421e33
commit b85da1e1bb
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ module.exports = (_env, argv) => {
const mode = typeof argv.mode === 'undefined' ? 'production' : argv.mode;
const isProduction = mode === 'production';
const configOptions = {
detectCircularDeps: Boolean(process.env.DETECT_CIRCULAR_DEPS) || !isProduction,
detectCircularDeps: Boolean(process.env.DETECT_CIRCULAR_DEPS),
minimize: isProduction
};
const config = getConfig(configOptions);