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

Function rollupBuildStart

ark/aot/unplugin.ts:999–1018  ·  view source on GitHub ↗
(this: RollupContext, options: RollupBuildOptions)

Source from the content-addressed store, hash-verified

997 }
998 // a production build reads the bundle from the first module it transforms
999 function rollupBuildStart(this: RollupContext, options: RollupBuildOptions) {
1000 startBuild.call(this)
1001 transformersAfter = laterTransformersOf(options.plugins ?? [])
1002 // as ark.json may be written later
1003 for (const path of settingsPathsOf(settingsRead?.cwd ?? process.cwd()))
1004 this.addWatchFile(path)
1005 const build = buildOf(this)
1006 scansByBuild.delete(build)
1007 pendingScans.delete(build)
1008 othersByBuild.delete(build)
1009 if (isServing || !prunesIn(!!environment?.production)) return
1010 const unread = unreadDefineOf(definedByBundler)
1011 if (unread) return warnOnce(this, writeUnprunedMessage(unread))
1012 othersByBuild.set(build, new Map())
1013 pendingScans.set(build, {
1014 inputs: Object.values(options.input),
1015 arrivals: new Map(),
1016 mappings: new Map()
1017 })
1018 }
1019 const scanOf = (
1020 context: RollupContext,
1021 file: string,

Callers

nothing calls this directly

Calls 10

settingsPathsOfFunction · 0.90
unreadDefineOfFunction · 0.90
writeUnprunedMessageFunction · 0.90
laterTransformersOfFunction · 0.85
buildOfFunction · 0.85
prunesInFunction · 0.85
callMethod · 0.80
warnOnceFunction · 0.70
deleteMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected