MCPcopy
hub / github.com/webpack/webpack / shorten

Method shorten

lib/RequestShortener.js:36–41  ·  view source on GitHub ↗

* Returns a request string rewritten relative to the configured directory * when one is provided. * @param {string | undefined | null} request the request to shorten * @returns {string | undefined | null} the shortened request

(request)

Source from the content-addressed store, hash-verified

34 * @returns {string | undefined | null} the shortened request
35 */
36 shorten(request) {
37 if (!request) {
38 return request;
39 }
40 return this.contextify(request);
41 }
42}
43
44module.exports = RequestShortener;

Callers 14

readableIdentifierMethod · 0.80
commentMethod · 0.80
readableIdentifierMethod · 0.80
readableIdentifierMethod · 0.80
getCurrentLoaderNameMethod · 0.80
processResultMethod · 0.80
logByLoadersSummaryMethod · 0.80
readableIdentifierMethod · 0.80
readableIdentifierMethod · 0.80
readableIdentifierMethod · 0.80
applyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected