(a: string, b: string)
| 2945 | const normalize = (str: string) => |
| 2946 | str.endsWith('/') && str.length > 1 ? str.slice(0, -1) : str |
| 2947 | function comparePaths(a: string, b: string) { |
| 2948 | return normalize(a) === normalize(b) |
| 2949 | } |
| 2950 | |
| 2951 | /** |
| 2952 | * Lazily import a module function and forward arguments to it, retaining |