(name)
| 453 | * @returns {GetNameFn | undefined} a function to get the name of the chunk |
| 454 | */ |
| 455 | const normalizeName = (name) => { |
| 456 | if (typeof name === "string") { |
| 457 | return () => name; |
| 458 | } |
| 459 | if (typeof name === "function") { |
| 460 | return /** @type {GetNameFn} */ (name); |
| 461 | } |
| 462 | }; |
| 463 | |
| 464 | /** |
| 465 | * Normalizes chunks filter. |
no outgoing calls
no test coverage detected