MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / toPosix

Function toPosix

packages/vite/hmr/server/websocket.ts:2657–2657  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

2655 try {
2656 const projectRoot = ((server as any).config?.root || process.cwd()) as string;
2657 const toPosix = (p: string) => p.replace(/\\/g, '/');
2658 const rootPosix = toPosix(projectRoot);
2659 const specPosix = toPosix(spec);
2660 // If spec is an absolute path under the project root, convert to '/'+relative

Callers 1

configureServerFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected