diff --git a/lib/builder.js b/lib/builder.js index 24eb400cad..487a762531 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -119,10 +119,6 @@ export default class Builder extends Tapable { } async production () { - // Avoid calling this method multiple times - if (this._buildStatus === STATUS.BUILD_DONE) { - return this - } // Production, create server-renderer const serverConfig = this.getWebpackServerConfig() const bundlePath = join(serverConfig.output.path, 'server-bundle.json') @@ -135,7 +131,6 @@ export default class Builder extends Tapable { const manifest = fs.readFileSync(manifestPath, 'utf8') this.createRenderer(JSON.parse(bundle), JSON.parse(manifest)) this.addAppTemplate() - this._buildStatus = STATUS.BUILD_DONE return this }