refactor(perf-loader): remove unused reference

This commit is contained in:
Clark Du 2018-03-30 09:57:30 +08:00
parent 0dd35fb047
commit c319a8c3d2
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
2 changed files with 3 additions and 4 deletions

View File

@ -425,7 +425,7 @@ export default class Builder {
}
async webpackBuild() {
this.perfLoader = new PerfLoader(this)
this.perfLoader = new PerfLoader(this.options)
const compilersOptions = []

View File

@ -6,9 +6,8 @@ import threadLoader from 'thread-loader'
// https://github.com/webpack-contrib/cache-loader
export default class PerfLoader {
constructor(builder) {
this.builder = builder
this.options = builder.options
constructor(options) {
this.options = options
this.workerPools = {
js: {