(relativePath: string, umd = false)
| 1564 | const getResolveUrl = (path: string, URL = 'URL') => `new ${URL}(${path}).href` |
| 1565 | |
| 1566 | const getRelativeUrlFromDocument = (relativePath: string, umd = false) => |
| 1567 | getResolveUrl( |
| 1568 | `'${escapeId(partialEncodeURIPath(relativePath))}', ${ |
| 1569 | umd ? `typeof document === 'undefined' ? location.href : ` : '' |
| 1570 | }document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`, |
| 1571 | ) |
| 1572 | |
| 1573 | const getFileUrlFromFullPath = (path: string) => |
| 1574 | `require('u' + 'rl').pathToFileURL(${path}).href` |
no test coverage detected