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

feat: bundle small deps, explicitly peer dep others. #156

Merged
merged 1 commit into from
Oct 10, 2018

Conversation

montezume
Copy link
Contributor

@montezume montezume commented Oct 9, 2018

Summary

Now we are treating every single dependancy as a peer dep. This isn't sustainable, since users don't want to install a small lodash module everytime we add one. It only makes sense to treat large dependencies as peer dependencies.

Approach

flatpickr, react-select, react-textarea-autosize, react-virtualized and styled-components are moved to peer deps, the rest stay as deps, and remove the rollup config that treats all deps as peer deps.

This increases the bundle size from 614kb -> 813kb, but I think the trade off is worth it.

@montezume montezume self-assigned this Oct 9, 2018
@montezume montezume requested review from emmenko and dferber90 October 9, 2018 18:04
@montezume montezume added the 💡 Type: Idea Propose a new idea label Oct 9, 2018
@montezume montezume requested a review from tdeekens October 9, 2018 18:06
Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with this. Thanks.

Copy link
Member

@emmenko emmenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can give it a try. Thanks!

@montezume
Copy link
Contributor Author

@dferber90 anything from your side?

Copy link
Contributor

@dferber90 dferber90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@montezume montezume merged commit ae59216 into master Oct 10, 2018
@montezume montezume deleted the ml-peer-deepify branch October 10, 2018 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Type: Idea Propose a new idea
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants