From e467007f94c320e1c578bd70559257c87d96b946 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 16 Mar 2018 22:33:11 +0330 Subject: [PATCH] update vue server webpack-plugin --- lib/builder/webpack/plugins/vue/util.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/builder/webpack/plugins/vue/util.js b/lib/builder/webpack/plugins/vue/util.js index 0f5377946a..98dc741b3b 100644 --- a/lib/builder/webpack/plugins/vue/util.js +++ b/lib/builder/webpack/plugins/vue/util.js @@ -24,14 +24,7 @@ exports.validate = compiler => { exports.onEmit = (compiler, name, hook) => { if (compiler.hooks) { // Webpack >= 4.0.0 - compiler.hooks.emit.tap(name, - (compilation) => new Promise((resolve, reject) => { - try { - hook(compilation, resolve) - } catch (e) { - reject(e) - } - })) + compiler.hooks.emit.tapAsync(name, hook) } else { // Webpack < 4.0.0 compiler.plugin('emit', hook)