getRolldownOptions() — vite Function Reference
Architecture documentation for the getRolldownOptions() function in fullBundleEnvironment.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD e6c19722_5c65_17df_83d9_4bb453d26d5b["getRolldownOptions()"] 8fcd8920_61ef_93b8_499a_c18a48b852e5["FullBundleDevEnvironment"] e6c19722_5c65_17df_83d9_4bb453d26d5b -->|defined in| 8fcd8920_61ef_93b8_499a_c18a48b852e5 848ddbbd_3d45_b055_e84a_874b4ca3fd45["listen()"] 848ddbbd_3d45_b055_e84a_874b4ca3fd45 -->|calls| e6c19722_5c65_17df_83d9_4bb453d26d5b a016fb65_b1f4_be50_c5c3_d0c8f7b2ab52["resolveRolldownOptions()"] e6c19722_5c65_17df_83d9_4bb453d26d5b -->|calls| a016fb65_b1f4_be50_c5c3_d0c8f7b2ab52 b2ef9799_cd96_ba83_06a5_28e8fa51363d["getHmrImplementation()"] e6c19722_5c65_17df_83d9_4bb453d26d5b -->|calls| b2ef9799_cd96_ba83_06a5_28e8fa51363d style e6c19722_5c65_17df_83d9_4bb453d26d5b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/environments/fullBundleEnvironment.ts lines 278–310
private async getRolldownOptions() {
const chunkMetadataMap = new ChunkMetadataMap()
const rolldownOptions = resolveRolldownOptions(this, chunkMetadataMap)
rolldownOptions.experimental ??= {}
rolldownOptions.experimental.devMode = {
implement: await getHmrImplementation(this.getTopLevelConfig()),
}
if (rolldownOptions.optimization) {
// disable inlineConst optimization due to a bug in Rolldown
rolldownOptions.optimization.inlineConst = false
}
// set filenames to make output paths predictable so that `renderChunk` hook does not need to be used
if (Array.isArray(rolldownOptions.output)) {
for (const output of rolldownOptions.output) {
output.entryFileNames = 'assets/[name].js'
output.chunkFileNames = 'assets/[name]-[hash].js'
output.assetFileNames = 'assets/[name]-[hash][extname]'
output.minify = false
output.sourcemap = true
}
} else {
rolldownOptions.output ??= {}
rolldownOptions.output.entryFileNames = 'assets/[name].js'
rolldownOptions.output.chunkFileNames = 'assets/[name]-[hash].js'
rolldownOptions.output.assetFileNames = 'assets/[name]-[hash][extname]'
rolldownOptions.output.minify = false
rolldownOptions.output.sourcemap = true
}
return rolldownOptions
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getRolldownOptions() do?
getRolldownOptions() is a function in the vite codebase, defined in packages/vite/src/node/server/environments/fullBundleEnvironment.ts.
Where is getRolldownOptions() defined?
getRolldownOptions() is defined in packages/vite/src/node/server/environments/fullBundleEnvironment.ts at line 278.
What does getRolldownOptions() call?
getRolldownOptions() calls 2 function(s): getHmrImplementation, resolveRolldownOptions.
What calls getRolldownOptions()?
getRolldownOptions() is called by 1 function(s): listen.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free