MCPcopy Create free account
hub / github.com/arktypeio/arktype / esbuildLoaderOf

Function esbuildLoaderOf

ark/aot/unplugin.ts:3005–3011  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

3003const esbuildTransformed = /\.(?:[cm]?[jt]s|[jt]sx)$/
3004
3005const esbuildLoaderOf = (path: string): "ts" | "tsx" | "js" | "jsx" =>
3006 path.endsWith("x") ?
3007 path.endsWith(".tsx") ?
3008 "tsx"
3009 : "jsx"
3010 : /\.[cm]?ts$/.test(path) ? "ts"
3011 : "js"
3012
3013interface InvalidationGraph<mod> {
3014 getModuleById: (id: string) => mod | undefined

Callers 1

loadEsbuildModulesFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected