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

Reducing the bundle size #94

Open
ardguezsoc opened this issue Oct 5, 2021 · 3 comments
Open

Reducing the bundle size #94

ardguezsoc opened this issue Oct 5, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@ardguezsoc
Copy link
Contributor

Is your feature request related to a problem? Please describe.

The current bundle of the package is really big so it would be interesting to find ways to reduce it.

Describe the solution you'd like

We would like to find ways that can help us to reduce the size of the bundle (coding optimisation, better approach to solutions, removing redundancy)

@ardguezsoc ardguezsoc added the help wanted Extra attention is needed label Oct 5, 2021
@kuhlaid
Copy link

kuhlaid commented Nov 17, 2021

Hi @ardguezsoc, what do you mean by bundle? The size of the repo if downloaded?

@ardguezsoc
Copy link
Contributor Author

Hi @kuhlaid nowadays we are using multiple external libraries to get cool components like react-phone and the react-date-picker. So i was talking about some ways to reduce the size in the way of finding lighter libraries that could replace this one. And I was talking more about the bundle that we are using although we are using rollup to make the build(and this is an interesting approach) of the library im not sure 100% if the configuration stablished is the right one i dont know if we could do something better to avoid this huge bundle size. For example : one approach was defining as dependencies a lot of libraries as you can see in the package.json. But im not sure if we could do something else 😞 .

@matyasjay
Copy link
Member

Necropost, but still relevant:
In general it is a good idea to review the import patterns of large fingerprint libs (react-phone ~~ 9.5MB) and utilise async instead of ES module import. Also, general practices like tree-shake, deadcode cleanup can help as well. i can work out a proposal of necessary steps if this is still on the roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants