(path)
| 343 | } |
| 344 | |
| 345 | toFileUrl(path) { |
| 346 | let cached = this.memoizedFileURLs.get(path) |
| 347 | if (cached) return cached |
| 348 | |
| 349 | if (pathToFileURL) { |
| 350 | let fileURL = pathToFileURL(path).toString() |
| 351 | this.memoizedFileURLs.set(path, fileURL) |
| 352 | |
| 353 | return fileURL |
| 354 | } else { |
| 355 | throw new Error( |
| 356 | '`map.absolute` option is not available in this PostCSS build' |
| 357 | ) |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | toUrl(path) { |
| 362 | let cached = this.memoizedURLs.get(path) |
no test coverage detected