MCPcopy
hub / github.com/webpack/webpack / mapAndSort

Method mapAndSort

lib/Compilation.js:3581–3585  ·  view source on GitHub ↗
(deps)

Source from the content-addressed store, hash-verified

3579 * @returns {Module[]} sorted deps
3580 */
3581 const mapAndSort = (deps) =>
3582 /** @type {Module[]} */
3583 (
3584 deps.map((dep) => this.moduleGraph.getModule(dep)).filter(Boolean)
3585 ).sort(compareModulesByIdentifier);
3586 const includedModules = [
3587 ...mapAndSort(this.globalEntry.includeDependencies),
3588 ...mapAndSort(includeDependencies)

Callers

nothing calls this directly

Calls 2

sortMethod · 0.80
getModuleMethod · 0.45

Tested by

no test coverage detected