triggerBundleRegenerationIfStale() — vite Function Reference
Architecture documentation for the triggerBundleRegenerationIfStale() function in fullBundleEnvironment.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 202ab9f4_58a5_311d_2d48_4d57ff3e4b5c["triggerBundleRegenerationIfStale()"] 8fcd8920_61ef_93b8_499a_c18a48b852e5["FullBundleDevEnvironment"] 202ab9f4_58a5_311d_2d48_4d57ff3e4b5c -->|defined in| 8fcd8920_61ef_93b8_499a_c18a48b852e5 fc571085_3ab0_feca_5965_61c2be1d5c08["indexHtmlMiddleware()"] fc571085_3ab0_feca_5965_61c2be1d5c08 -->|calls| 202ab9f4_58a5_311d_2d48_4d57ff3e4b5c style 202ab9f4_58a5_311d_2d48_4d57ff3e4b5c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/environments/fullBundleEnvironment.ts lines 260–271
async triggerBundleRegenerationIfStale(): Promise<boolean> {
const bundleState = await this.devEngine.getBundleState()
const shouldTrigger =
bundleState.hasStaleOutput && !bundleState.lastFullBuildFailed
if (shouldTrigger) {
this.devEngine.ensureLatestBuildOutput().then(() => {
this.debouncedFullReload()
})
debug?.(`TRIGGER: access to stale bundle, triggered bundle re-generation`)
}
return shouldTrigger
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does triggerBundleRegenerationIfStale() do?
triggerBundleRegenerationIfStale() is a function in the vite codebase, defined in packages/vite/src/node/server/environments/fullBundleEnvironment.ts.
Where is triggerBundleRegenerationIfStale() defined?
triggerBundleRegenerationIfStale() is defined in packages/vite/src/node/server/environments/fullBundleEnvironment.ts at line 260.
What calls triggerBundleRegenerationIfStale()?
triggerBundleRegenerationIfStale() is called by 1 function(s): indexHtmlMiddleware.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free