* Finds the loader for the specified target path, relative to the source * root, if the loader exists. If there is no such loader, returns undefined. * For files within archives, we find the first parent folder that exists, but * abort if we find a matching folder or reach the source root;
(path: string)
| 123 | * if src/data exists, we won’t look for a src/data.zip. |
| 124 | */ |
| 125 | find(path: string): Loader | undefined { |
| 126 | return this.findFile(path) ?? this.findArchive(path); |
| 127 | } |
| 128 | |
| 129 | // Finding a file: |
| 130 | // - /path/to/file.csv |
no test coverage detected