MCPcopy
hub / github.com/webpack/webpack / keyToRuntime

Function keyToRuntime

lib/util/runtime.js:104–109  ·  lib/util/runtime.js::keyToRuntime
(key)

Source from the content-addressed store, hash-verified

102 * @returns {RuntimeSpec} runtime(s)
103 */
104const keyToRuntime = (key) => {
105 if (key === class="st">"*") return;
106 const items = key.split(class="st">"\n");
107 if (items.length === 1) return items[0];
108 return new SortableSet(items);
109};
110
111/**
112 * Gets runtimes string.

Callers 2

applyMethod · 0.85
getModeFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected