(compiler)
| 6 | } |
| 7 | |
| 8 | apply(compiler) { |
| 9 | compiler.hooks.done.tap("webpack-cli Test Plugin", () => { |
| 10 | if (this.showHooks) { |
| 11 | const identifiers = this.showHooks.split("."); |
| 12 | |
| 13 | let shown = compiler; |
| 14 | |
| 15 | for (const identifier of identifiers) { |
| 16 | shown = shown[identifier]; |
| 17 | } |
| 18 | |
| 19 | console.log(shown); |
| 20 | } |
| 21 | |
| 22 | if (this.showAll) { |
| 23 | console.log(compiler.options); |
| 24 | } |
| 25 | |
| 26 | if (this.opts) { |
| 27 | this.opts.map((e) => { |
| 28 | const config = Object.getOwnPropertyDescriptor(compiler.options, e); |
| 29 | |
| 30 | console.log(config.value); |
| 31 | |
| 32 | return e; |
| 33 | }); |
| 34 | } |
| 35 | }); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | module.exports = WebpackCLITestPlugin; |
nothing calls this directly
no outgoing calls
no test coverage detected