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

Function normalizePathSlashes

packages/commonjs/src/utils.js:33–35  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

31}
32
33export function normalizePathSlashes(path) {
34 return path.replace(/\\/g, '/');
35}
36
37export const getVirtualPathForDynamicRequirePath = (path, commonDir) =>
38 `/${normalizePathSlashes(relative(commonDir, path))}`;

Callers 4

getDynamicRequireModulesFunction · 0.90
transformAndCheckExportsFunction · 0.90
checkDynamicRequireFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected