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

Function isBarrelModule

ark/aot/unplugin.ts:2141–2142  ·  view source on GitHub ↗
({ matchResource }: { matchResource?: string })

Source from the content-addressed store, hash-verified

2139const barrelRequest = "__barrel_optimize__"
2140
2141const isBarrelModule = ({ matchResource }: { matchResource?: string }) =>
2142 !!matchResource?.includes(barrelRequest)
2143
2144// the specifier a module's text names, of the request Next.js builds its
2145// import under: `__barrel_optimize__?names=a,b!=!pkg` for `pkg`

Callers 3

handlerFunction · 0.85
builtOfFunction · 0.85
builtEntriesOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected