MCPcopy
hub / github.com/vitejs/vite / stripRoot

Function stripRoot

packages/vite/src/node/ssr/__tests__/ssrLoadModule.spec.ts:191–193  ·  view source on GitHub ↗
(s?: string)

Source from the content-addressed store, hash-verified

189 const server = await createDevServer()
190
191 function stripRoot(s?: string) {
192 return (s || '').replace(server.config.root, '<root>')
193 }
194
195 for (const file of [
196 '/fixtures/errors/syntax-error.ts',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected