MCPcopy
hub / github.com/webpack/webpack / getRuntimeKey

Function getRuntimeKey

lib/util/runtime.js:93–97  ·  view source on GitHub ↗
(runtime)

Source from the content-addressed store, hash-verified

91 * @returns {string} key of runtimes
92 */
93const getRuntimeKey = (runtime) => {
94 if (runtime === undefined) return "*";
95 if (typeof runtime === "string") return runtime;
96 return runtime.getFromUnorderedCache(getRuntimesKey);
97};
98
99/**
100 * Returns runtime(s).

Callers 15

_codeGenerationModuleMethod · 0.85
createModuleHashesMethod · 0.85
applyMethod · 0.85
applyMethod · 0.85
renderStartupMethod · 0.85
renderModuleContentMethod · 0.85
getModeMethod · 0.85
compareRuntimeFunction · 0.85
getMethod · 0.85
hasMethod · 0.85
setMethod · 0.85

Calls 1

getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected