(chunk)
| 604 | * @returns {boolean} true, when enabled |
| 605 | */ |
| 606 | const isEnabledForChunk = (chunk) => { |
| 607 | const options = chunk.getEntryOptions(); |
| 608 | const chunkLoading = |
| 609 | options && options.chunkLoading !== undefined |
| 610 | ? options.chunkLoading |
| 611 | : globalChunkLoading; |
| 612 | return chunkLoading === "jsonp" || chunkLoading === "import"; |
| 613 | }; |
| 614 | /** @type {WeakSet<Chunk>} */ |
| 615 | const onceForChunkSet = new WeakSet(); |
| 616 | /** |
nothing calls this directly
no test coverage detected