MCPcopy
hub / github.com/webpack/webpack / readableIdentifier

Method readableIdentifier

lib/css/CssModule.js:120–142  ·  view source on GitHub ↗

* Returns a human-readable identifier for this module. * @param {RequestShortener} requestShortener the request shortener * @returns {string} a user readable identifier of the module

(requestShortener)

Source from the content-addressed store, hash-verified

118 * @returns {string} a user readable identifier of the module
119 */
120 readableIdentifier(requestShortener) {
121 const readableIdentifier = super.readableIdentifier(requestShortener);
122
123 let identifier = `css ${readableIdentifier}`;
124
125 if (this.cssLayer) {
126 identifier += ` (layer: ${this.cssLayer})`;
127 }
128
129 if (this.supports) {
130 identifier += ` (supports: ${this.supports})`;
131 }
132
133 if (this.media) {
134 identifier += ` (media: ${this.media})`;
135 }
136
137 if (this.exportType) {
138 identifier += ` (exportType: ${this.exportType})`;
139 }
140
141 return identifier;
142 }
143
144 /**
145 * Assuming this module is in the cache. Update the (cached) module with

Callers 3

generateMethod · 0.45
getModulesInOrderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected