Skip to content

[Bug]: split chunk not respect minSize and maxSize #8310

Open

Description

System Info

System: mac os
rsbuild: 1.0.18

The split chunk results are very different from those of webpack.

Details

webpack
Image

rsbuild

Image

  1. If minSize is set small, for example, I set 100*1024
    There will be many small initial blocks less than 100kb, and some of their contents are even just a component
  2. maxSize seems unable to limit the size of the initial chunk, they will actually exceed

the summary is that minSize + maxSize cannot produce a product with a suitable size range.

Reproduce link

No response

Reproduce Steps

webpack.config.js
Image

rsbuild.config.ts
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions