MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / splitFileAndPostfix

Function splitFileAndPostfix

packages/vite/src/bridge/resolve.ts:8–11  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

6
7// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/plugins/resolve.ts#L534
8function splitFileAndPostfix(path: string) {
9 const file = cleanUrl(path);
10 return { file, postfix: path.slice(file.length) };
11}
12
13// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/plugins/resolve.ts#L566-L574
14/**

Callers 1

tryFsResolveFunction · 0.85

Calls 2

cleanUrlFunction · 0.90
sliceMethod · 0.45

Tested by

no test coverage detected