esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

How to control the number of chunks

Open ssccchh opened this issue 3 years ago • 1 comments

When I use the spliting attribute to pack, there are a lot of chunks, most of which are very small in size. I would like to ask how to control the number of chunks. image

ssccchh avatar Jul 27 '22 01:07 ssccchh

There is currently no way to do this, sorry.

evanw avatar Jul 30 '22 20:07 evanw

Dupe of https://github.com/evanw/esbuild/issues/1128

dzearing avatar Sep 27 '22 13:09 dzearing

There is currently no way to do this, sorry.

Any plans to support this in the future? This can result in too many requests affecting load performance

fafer avatar Jul 16 '23 15:07 fafer

Yes, I do have plans to support this in the future.

evanw avatar Jul 16 '23 15:07 evanw