(file: string)
| 243 | }; |
| 244 | |
| 245 | export function getLoaderForFile(file: string): esbuild.Loader { |
| 246 | const ext = extname(file); |
| 247 | const loader = loaders[ext]; |
| 248 | |
| 249 | if (loader) return loader; |
| 250 | |
| 251 | throw new Error(`Cannot get loader for file ${file}`); |
| 252 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…