MCPcopy
hub / github.com/webpack/webpack / groupByNames

Function groupByNames

lib/stats/DefaultStatsFactoryPlugin.js:2262–2272  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

2260 * @param {keyof KnownStatsAsset} name name
2261 */
2262 const groupByNames = (name) => {
2263 groupConfigs.push({
2264 getKeys: (asset) => /** @type {string[]} */ (asset[name]),
2265 createGroup: (key, children, assets) => ({
2266 type: "assets by chunk",
2267 [name]: [key],
2268 children,
2269 ...assetGroup(children, assets)
2270 })
2271 });
2272 };
2273 groupByNames("chunkNames");
2274 groupByNames("auxiliaryChunkNames");
2275 groupByNames("chunkIdHints");

Callers 1

Calls 2

assetGroupFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected