(chunk, set)
| 619 | * @param {RuntimeRequirements} set runtime requirements |
| 620 | */ |
| 621 | const handler = (chunk, set) => { |
| 622 | if (onceForChunkSet.has(chunk)) return; |
| 623 | onceForChunkSet.add(chunk); |
| 624 | if (!isEnabledForChunk(chunk)) return; |
| 625 | |
| 626 | const CssLoadingRuntimeModule = getCssLoadingRuntimeModule(); |
| 627 | compilation.addRuntimeModule(chunk, new CssLoadingRuntimeModule(set)); |
| 628 | }; |
| 629 | compilation.hooks.runtimeRequirementInTree |
| 630 | .for(RuntimeGlobals.hasCssModules) |
| 631 | .tap(PLUGIN_NAME, handler); |
nothing calls this directly
no test coverage detected