MCPcopy
hub / github.com/webpack/webpack / fromVid

Function fromVid

lib/schemes/VirtualUrlPlugin.js:90–92  ·  view source on GitHub ↗

* Converts a virtual module id to a module id * @param {string} vid The virtual module id * @param {string} scheme The URL scheme * @returns {string} The module id

(vid, scheme)

Source from the content-addressed store, hash-verified

88 * @returns {string} The module id
89 */
90function fromVid(vid, scheme) {
91 return vid.replace(`${scheme}:`, "");
92}
93
94const VALUE_DEP_VERSION = `webpack/${PLUGIN_NAME}/version`;
95

Callers 1

applyMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected