From 080453586f47530b92e22181703fdf967fb38804 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 27 Jul 2017 22:16:11 +0430 Subject: [PATCH] hide warns about plugins without a default export partial fix for #1179 --- lib/builder/webpack/base.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/builder/webpack/base.config.js b/lib/builder/webpack/base.config.js index bc3b4b7390..b0db0ddade 100644 --- a/lib/builder/webpack/base.config.js +++ b/lib/builder/webpack/base.config.js @@ -116,6 +116,20 @@ export default function webpackBaseConfig ({ isClient, isServer }) { ) } + // Workaround for hiding Warnings about plugins without a default export (#1179) + config.plugins.push({ + apply (compiler) { + compiler.plugin('done', stats => { + stats.compilation.warnings = stats.compilation.warnings.filter(warn => { + if (warn.name === 'ModuleDependencyWarning' && warn.message.includes(`export 'default'`) && warn.message.includes('plugin')) { + return false + } + return true + }) + }) + } + }) + // -------------------------------------- // Dev specific config // --------------------------------------