MCPcopy
hub / github.com/webpack/webpack / getModuleRuntimeRequirements

Method getModuleRuntimeRequirements

lib/ChunkGraph.js:1740–1745  ·  view source on GitHub ↗

* Gets module runtime requirements. * @param {Module} module the module * @param {RuntimeSpec} runtime the runtime * @returns {ReadOnlyRuntimeRequirements} runtime requirements

(module, runtime)

Source from the content-addressed store, hash-verified

1738 * @returns {ReadOnlyRuntimeRequirements} runtime requirements
1739 */
1740 getModuleRuntimeRequirements(module, runtime) {
1741 const cgm = this._getChunkGraphModule(module);
1742 const runtimeRequirements =
1743 cgm.runtimeRequirements && cgm.runtimeRequirements.get(runtime);
1744 return runtimeRequirements === undefined ? EMPTY_SET : runtimeRequirements;
1745 }
1746
1747 /**
1748 * Gets chunk runtime requirements.

Callers 6

applyMethod · 0.80
applyMethod · 0.80
renderModuleMethod · 0.80
renderMainMethod · 0.80
renderBootstrapMethod · 0.80

Calls 2

_getChunkGraphModuleMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected