From 59f8e48549c3482afdb29e0d25f37e2f2fbe3efc Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 14 Jun 2017 22:09:32 +0430 Subject: [PATCH] builder no longer needs init --- lib/builder.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/builder.js b/lib/builder.js index 42eb59719b..ab6920c236 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -42,23 +42,6 @@ export default class Builder extends Tapable { this.webpackDevMiddleware = null this.webpackHotMiddleware = null - if (nuxt.initialized) { - // If nuxt already initialized - this._init = this.init().catch(this.nuxt.errorHandler) - } else { - // Wait for hook - this.nuxt.plugin('init', () => { - this._init = this.init() - return this._init - }) - } - } - - async init () { - if (this._init) { - return this._init - } - // Add extra loaders only if they are not already provided let extraDefaults = {} if (this.options.build && !Array.isArray(this.options.build.loaders)) {