MCPcopy Create free account
hub / github.com/rollup/plugins / modifyMap

Function modifyMap

packages/commonjs/src/dynamic-modules.js:40–43  ·  view source on GitHub ↗
(targetPath, resolvedPath)

Source from the content-addressed store, hash-verified

38 for (const pattern of !patterns || Array.isArray(patterns) ? patterns || [] : [patterns]) {
39 const isNegated = pattern.startsWith('!');
40 const modifyMap = (targetPath, resolvedPath) =>
41 isNegated
42 ? dynamicRequireModules.delete(targetPath)
43 : dynamicRequireModules.set(targetPath, resolvedPath);
44 // eslint-disable-next-line new-cap
45 for (const path of new fdir()
46 .withBasePath()

Callers 1

getDynamicRequireModulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected