MCPcopy Index your code
hub / github.com/rollup/plugins / getVirtualPathForDynamicRequirePath

Function getVirtualPathForDynamicRequirePath

packages/commonjs/src/utils.js:37–38  ·  view source on GitHub ↗
(path, commonDir)

Source from the content-addressed store, hash-verified

35}
36
37export const getVirtualPathForDynamicRequirePath = (path, commonDir) =>
38 `/${normalizePathSlashes(relative(commonDir, path))}`;
39
40export function capitalize(name) {
41 return name[0].toUpperCase() + name.slice(1);

Callers 2

getDynamicModuleRegistryFunction · 0.90
transformCommonjsFunction · 0.90

Calls 1

normalizePathSlashesFunction · 0.70

Tested by

no test coverage detected