MCPcopy
hub / github.com/webpack/webpack / withName

Function withName

lib/ExternalModule.js:140–141  ·  view source on GitHub ↗
(next)

Source from the content-addressed store, hash-verified

138 * @returns {string | string[]} request with the specifier swapped
139 */
140 const withName = (next) =>
141 Array.isArray(request) ? [next, ...request.slice(1)] : next;
142
143 if (
144 runtimeTemplate.outputOptions.environment.nodePrefixForCoreModules === false

Callers 1

Calls 2

isArrayMethod · 0.80
sliceMethod · 0.80

Tested by

no test coverage detected