Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
433
function
maybeToFileUrl(file: string) {
434
return
file.startsWith(
"file://"
) ? file : path.toFileUrl(file).href;
435
}
436
437
export
interface
PendingStaticFile {
438
pathname: string;
Callers
2
flush
Method · 0.85
prepare
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected