Function
apply
test/ProfilingPlugin.test.js:36–54
· test/ProfilingPlugin.test.js::apply
(compiler)
Source from the content-addressed store, hash-verified
| 34 | }), |
| 35 | { |
| 36 | apply(compiler) { |
| 37 | const hook = compiler.hooks.make; |
| 38 | for (const { stage, order } of [ |
| 39 | { stage: 0, order: 1 }, |
| 40 | { stage: 1, order: 2 }, |
| 41 | { stage: -1, order: 0 } |
| 42 | ]) { |
| 43 | hook.tap( |
| 44 | { |
| 45 | name: class="st">"RespectStageCheckerPlugin", |
| 46 | stage |
| 47 | }, |
| 48 | class="cm">// eslint-disable-next-line no-loop-func |
| 49 | () => { |
| 50 | expect(counter++).toBe(order); |
| 51 | } |
| 52 | ); |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | ], |
| 57 | experiments: { |
Callers
nothing calls this directly
Tested by
no test coverage detected