[RFC] Implement build in chunks to improve import cost
Open
@paulocfjunior is already working on this.
Since Feb 15, 2022.
enhancement
kind/proposal
- Dominant language
- TypeScript
- Stars
- 41
- Forks
- 16
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 3
Description
RFC
Overview
Currently, our build generates one single file that embeds all components, fonts, and utils.
This affects the First Load JS size as it will load the entire library in the first render.
Proposal
Configure rollup to use manualChunks or another approach that splits the code in chunks that can be imported invididually.
Examples in other libraries
I haven't found yet an example
Who does this impact? Who is this for?
This will impact anyone that uses the lib by optimizing how the components are imported.
Additional context
Rollup documentation around code splitting and manual chunks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.