isLegacyBundle() — vite Function Reference
Architecture documentation for the isLegacyBundle() function in index.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 05be5ca5_2f63_2c99_c05a_ce1bdff8d1ab["isLegacyBundle()"] 9776ecb6_00c0_b3b9_b3f7_177fedabeacc["index.ts"] 05be5ca5_2f63_2c99_c05a_ce1bdff8d1ab -->|defined in| 9776ecb6_00c0_b3b9_b3f7_177fedabeacc cf21e8d8_cce6_30a7_7732_696ed5cdf103["viteLegacyPlugin()"] cf21e8d8_cce6_30a7_7732_696ed5cdf103 -->|calls| 05be5ca5_2f63_2c99_c05a_ce1bdff8d1ab style 05be5ca5_2f63_2c99_c05a_ce1bdff8d1ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/plugin-legacy/src/index.ts lines 982–988
function isLegacyBundle(bundle: Rollup.OutputBundle) {
const entryChunk = Object.values(bundle).find(
(output) => output.type === 'chunk' && output.isEntry,
)
return !!entryChunk && entryChunk.fileName.includes('-legacy')
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isLegacyBundle() do?
isLegacyBundle() is a function in the vite codebase, defined in packages/plugin-legacy/src/index.ts.
Where is isLegacyBundle() defined?
isLegacyBundle() is defined in packages/plugin-legacy/src/index.ts at line 982.
What calls isLegacyBundle()?
isLegacyBundle() is called by 1 function(s): viteLegacyPlugin.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free