MCPcopy
hub / github.com/webpack/webpack / toCacheKey

Function toCacheKey

lib/schemes/VirtualUrlPlugin.js:102–104  ·  view source on GitHub ↗

* Converts a module id and scheme to a cache key * @param {string} id The module id * @param {string} scheme The URL scheme * @returns {string} The cache key

(id, scheme)

Source from the content-addressed store, hash-verified

100 * @returns {string} The cache key
101 */
102function toCacheKey(id, scheme) {
103 return `${VALUE_DEP_VERSION}/${toVid(id, scheme)}`;
104}
105
106class VirtualUrlPlugin {
107 /**

Callers 1

applyMethod · 0.85

Calls 1

toVidFunction · 0.85

Tested by

no test coverage detected