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 // --------------------------------------