From c4ff71438cbe548dc386f5ebf858ef855ff2cfc9 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 29 Mar 2018 15:26:04 +0800 Subject: [PATCH] refactor: PerfLoader has been filterd by parallel build enabled --- lib/builder/webpack/utils/perf-loader.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/builder/webpack/utils/perf-loader.js b/lib/builder/webpack/utils/perf-loader.js index ed7ba6c3df..20c5db4533 100644 --- a/lib/builder/webpack/utils/perf-loader.js +++ b/lib/builder/webpack/utils/perf-loader.js @@ -24,10 +24,6 @@ export default class PerfLoader { } warmup() { - if (!this.options.build.parallel) { - return - } - threadLoader.warmup(this.workerPools.js, ['babel-loader', 'babel-preset-env']) threadLoader.warmup(this.workerPools.css, ['css-loader']) }