MCPcopy
hub / github.com/webpack/webpack / identifier

Method identifier

lib/NormalModule.js:945–953  ·  view source on GitHub ↗

* Returns the unique identifier used to reference this module. * @returns {string} a unique identifier of the module

()

Source from the content-addressed store, hash-verified

943 * @returns {string} a unique identifier of the module
944 */
945 identifier() {
946 if (this.layer === null) {
947 if (this.type === JAVASCRIPT_MODULE_TYPE_AUTO) {
948 return this.request;
949 }
950 return `${this.type}|${this.request}`;
951 }
952 return `${this.type}|${this.request}|${this.layer}`;
953 }
954
955 /**
956 * Returns a human-readable identifier for this module.

Callers 2

_createLoaderContextMethod · 0.95
createSourceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected