MCPcopy
hub / github.com/webpack/webpack / getCacheVersion

Method getCacheVersion

lib/schemes/VirtualUrlPlugin.js:291–295  ·  view source on GitHub ↗

* Get the cache version for a given version value * @param {VersionFn | true | string} version The version value or function * @returns {string | undefined} The cache version

(version)

Source from the content-addressed store, hash-verified

289 * @returns {string | undefined} The cache version
290 */
291 getCacheVersion(version) {
292 return version === true
293 ? undefined
294 : (typeof version === "function" ? version() : version) || "unset";
295 }
296}
297
298VirtualUrlPlugin.DEFAULT_SCHEME = DEFAULT_SCHEME;

Callers 1

applyMethod · 0.95

Calls 1

versionFunction · 0.85

Tested by

no test coverage detected