(compiler, handler)
| 11 | const tapName = 'workerize-loader'; |
| 12 | |
| 13 | function compilationHook(compiler, handler) { |
| 14 | if (compiler.hooks) { |
| 15 | return compiler.hooks.compilation.tap(tapName, handler); |
| 16 | } |
| 17 | return compiler.plugin('compilation', handler); |
| 18 | } |
| 19 | |
| 20 | function parseHook(data, handler) { |
| 21 | if (data.normalModuleFactory.hooks) { |
no outgoing calls
no test coverage detected
searching dependent graphs…