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
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 Feb 15, 2018
Hugo Heyman
Hugo Heyman
Make eslint happy again, and make rollup coupe with implicit 'index.js' import
@fakiolinho
Copy link
Owner

@fakiolinho fakiolinho commented Mar 21, 2018

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 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

@constantx constantx commented Jul 9, 2018

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

@ezze
Copy link

@ezze 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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.