Skip to content

Interface: ChunkOptimizationOptions

Properties

avoidRedundantChunkLoads?

  • Type: boolean
  • Optional

Avoid emitting redundant chunk loads for dynamic entries.

This pass can reduce dynamic-entry dependent chunks when the shared modules are guaranteed to be loaded by every importer of that dynamic entry.

Default

ts
true

mergeCommonChunks?

  • Type: boolean
  • Optional

Merge common chunks into existing entry chunks when it is safe.

This can reduce the number of emitted chunks by moving shared/common modules into an entry chunk that already depends on them. Rolldown only applies the merge when it does not create a circular chunk dependency or change strict entry export signatures. This pass also covers safe empty-facade cleanup.

Default

ts
true