MCPcopy Index your code
hub / github.com/freshframework/fresh / maybeToFileUrl

Function maybeToFileUrl

packages/fresh/src/dev/dev_build_cache.ts:433–435  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

431}
432
433function maybeToFileUrl(file: string) {
434 return file.startsWith("file://") ? file : path.toFileUrl(file).href;
435}
436
437export interface PendingStaticFile {
438 pathname: string;

Callers 2

flushMethod · 0.85
prepareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected