* @param {string} url * @returns {string}
(url)
| 145 | * @returns {string} |
| 146 | */ |
| 147 | function convertURLToCJSFilename(url) { |
| 148 | if (!url) { return url; } |
| 149 | const builtinId = BuiltinModule.normalizeRequirableId(url); |
| 150 | if (builtinId) { |
| 151 | return builtinId; |
| 152 | } |
| 153 | if (StringPrototypeStartsWith(url, 'file://')) { |
| 154 | return fileURLToPath(url); |
| 155 | } |
| 156 | return url; |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Convert a list of hooks into a function that can be used to do an operation through |
no test coverage detected
searching dependent graphs…