(compiler)
| 25 | } |
| 26 | |
| 27 | apply(compiler) { |
| 28 | compiler.hooks.thisCompilation.tap( |
| 29 | "errors-webpack-plugin", |
| 30 | (compilation) => { |
| 31 | if ( |
| 32 | typeof this.skipCounter !== "undefined" && |
| 33 | this.counter !== this.skipCounter |
| 34 | ) { |
| 35 | this.counter += 1; |
| 36 | |
| 37 | return; |
| 38 | } |
| 39 | |
| 40 | compilation.errors.push(new Error(this.message)); |
| 41 | }, |
| 42 | ); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | class WarningPlugin { |
no outgoing calls
no test coverage detected