(filename: string, importer: string)
| 35 | const preloadMarkerRE = new RegExp(preloadMarker, 'g') |
| 36 | |
| 37 | function toRelativePath(filename: string, importer: string) { |
| 38 | const relPath = path.posix.relative(path.posix.dirname(importer), filename) |
| 39 | return relPath[0] === '.' ? relPath : `./${relPath}` |
| 40 | } |
| 41 | |
| 42 | function findPreloadMarker(str: string, pos: number = 0): number { |
| 43 | preloadMarkerRE.lastIndex = pos |
no outgoing calls
no test coverage detected