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

Function getFileUrlFromRelativePath

packages/vite/src/bridge/build.ts:37–37  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

35const getFileUrlFromFullPath = (path: string) => `require('u' + 'rl').pathToFileURL(${path}).href`;
36
37const getFileUrlFromRelativePath = (path: string) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`);
38
39const relativeUrlMechanisms: Record<InternalModuleFormat, (relativePath: string) => string> = {
40 amd: relativePath => {

Callers 1

build.tsFile · 0.85

Calls 2

getFileUrlFromFullPathFunction · 0.85
escapeIdFunction · 0.85

Tested by

no test coverage detected