fix(dev) disable performance hints when doing bundle analysis

This commit is contained in:
Saúl Ibarra Corretgé 2021-05-07 15:24:00 +02:00 committed by Saúl Ibarra Corretgé
parent 2c24dc3d27
commit a5ddc896e2
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const minimize
*/ */
function getPerformanceHints(size) { function getPerformanceHints(size) {
return { return {
hints: minimize ? 'error' : false, hints: minimize && !analyzeBundle ? 'error' : false,
maxAssetSize: size, maxAssetSize: size,
maxEntrypointSize: size maxEntrypointSize: size
}; };