UNPKG

521 BJavaScriptView Raw
1module.exports = class BootDefaultExport {
2 apply (compiler) {
3 compiler.hooks.done.tap('boot-default-export', stats => {
4 // we filter out warnings about the default export
5 // in boot files (we want to be able to not export anything)
6
7 stats.compilation.warnings = stats.compilation.warnings.filter(
8 warn => !(
9 warn.name === 'ModuleDependencyWarning' &&
10 warn.message.includes(`export 'default'`) &&
11 warn.message.includes('qboot_')
12 )
13 )
14 })
15 }
16}