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