MCPcopy
hub / github.com/triggerdotdev/trigger.dev / getLoaderForFile

Function getLoaderForFile

packages/cli-v3/src/utilities/build.ts:245–252  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

243};
244
245export 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}

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…