MCPcopy
hub / github.com/webpack/webpack / isEnabledForChunk

Method isEnabledForChunk

lib/css/CssModulesPlugin.js:606–613  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

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 /**

Callers

nothing calls this directly

Calls 1

getEntryOptionsMethod · 0.80

Tested by

no test coverage detected