For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/rspeedy.chunksplitcustom.strategy.md.
这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/rspeedy > ChunkSplitCustom > strategy

ChunkSplitCustom.strategy property

The ChunkSplitting strategy.

Signature:

strategy: 'custom';

Remarks

  • split-by-experience(Rsbuild default): an empirical splitting strategy, automatically splits some commonly used npm packages into chunks of moderate size.

  • split-by-module: split by NPM package granularity, each NPM package corresponds to a chunk.

  • split-by-size: automatically split according to module size.

  • all-in-one: bundle all codes into one chunk.

  • single-vendor: bundle all NPM packages into a single chunk.

  • custom: custom chunk splitting strategy.