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

Function shouldTransformCachedModule

ark/aot/unplugin.ts:1056–1060  ·  view source on GitHub ↗
({ id }: { id: string })

Source from the content-addressed store, hash-verified

1054 }
1055 // a module Rollup's watch mode kept was written for an earlier bundle
1056 const shouldTransformCachedModule = ({ id }: { id: string }) =>
1057 rewritesCached ||
1058 (prunesIn(!!environment?.production) &&
1059 transformedFilter.include.test(id) &&
1060 !transformedFilter.exclude.test(id))
1061 // what another plugin writes, like a compiled Svelte component, is read once it's written
1062 const unwrittenChecker: UnpluginOptions = {
1063 name: checkerName,

Callers

nothing calls this directly

Calls 2

prunesInFunction · 0.85
testMethod · 0.80

Tested by

no test coverage detected