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

Add es-module build with smaller dist size #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

HeyHugo
Copy link

@HeyHugo HeyHugo commented Feb 15, 2018

When I analysed my app bundle I saw that this package looked a bit too beefy and saw that it did not have an es-module dist plus I thought dist size could probably be made a bit smaller.

rollup-plugin-string is used to inline the svgs into the dist for es-modules.

Cheers!

Hugo Heyman added 2 commits February 15, 2018 01:29
Make eslint happy again, and make rollup coupe with implicit 'index.js' import
@fakiolinho
Copy link
Owner

Can you please resolve conflicts @HeyHugo ? Maybe it is wiser to move entirely to rollup instead of webpack? What do you think? Having both of them in place seems a little redundant to me 🤔

@HeyHugo
Copy link
Author

HeyHugo commented Mar 21, 2018

Ok will fix conflicts.

Yes building all bundles with rollup probably makes sense. I'll add this to the PR when I have some time soon. Currently the commonjs dist is bundled as a umd build. I'll make this bundle proper commonjs and add a umd build with .min.js extension. Sounds good?

@constantx
Copy link

Any chance this can be merged in? I just realized the dist bundle is quite big as well.

@ezze
Copy link

ezze commented Jan 9, 2020

@fakiolinho will it be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants