Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Implement build in chunks to improve import cost #290

Open
paulocfjunior opened this issue Feb 15, 2022 · 2 comments
Open

[RFC] Implement build in chunks to improve import cost #290

paulocfjunior opened this issue Feb 15, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request kind/proposal

Comments

@paulocfjunior
Copy link
Contributor

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.

@paulocfjunior paulocfjunior self-assigned this Feb 15, 2022
@paulocfjunior paulocfjunior added enhancement New feature or request kind/proposal labels Feb 15, 2022
@paulocfjunior
Copy link
Contributor Author

@seedy
Copy link
Contributor

seedy commented Apr 6, 2022

I just created an issue to study alternatives to one of our (bad) rollup plugins:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kind/proposal
Projects
None yet
Development

No branches or pull requests

2 participants