UNPKG

@quasar/app-webpack

Version:

Quasar Framework App CLI with Webpack

18 lines (16 loc) 568 B
module.exports.BootDefaultExportPlugin = class BootDefaultExportPlugin { apply(compiler) { compiler.hooks.done.tap('boot-default-export', stats => { // we filter out warnings about the default export // in boot files (we want to be able to not export anything) stats.compilation.warnings = stats.compilation.warnings.filter( warn => !( warn.name === 'ModuleDependencyWarning' && warn.message.includes("export 'default'") && warn.message.includes('qboot_') ) ) }) } }