Skip to content

Next step for manual code splitting(mcs) #7114

@hyf0

Description

@hyf0
  • Support equivalent of webpack's SplitChunks#chunks
  • maxSize should be renamed with a more semantic name which infers its' behavior
  • Eliminate barrel chunks caused by advancedChunks if possible
  • Examples + Guidance of how to use advancedChunks
  • Explore the pre-defined/preset advanceChunks config for different scenarios
  • Allow to move irrelevant modules into other entries.
  • empty chunk generated and imported when using advancedChunks #6677

The goals:

  • load as less unnecessary code as possible
  • reduce the number of chunks that is needed for each entries, but we still want to split the chunks reasonably so that browsers can download / parse chunks in parallel
  • split chunks into frequently changed modules and non-frequently changed modules

Metadata

Metadata

Assignees

Labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions