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

Function equalWithoutSuffix

packages/vite/src/node/plugins/resolve.ts:1141–1143  ·  view source on GitHub ↗
(path: string, key: string, suffix: string)

Source from the content-addressed store, hash-verified

1139}
1140
1141function equalWithoutSuffix(path: string, key: string, suffix: string) {
1142 return key.endsWith(suffix) && key.slice(0, -suffix.length) === path
1143}
1144
1145function tryResolveRealFile(
1146 file: string,

Callers 1

mapWithBrowserFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected