Skip to content

Add es-module build with smaller dist size#44

Open
HeyHugo wants to merge 2 commits into
fakiolinho:masterfrom
HeyHugo:es-module-build
Open

Add es-module build with smaller dist size#44
HeyHugo wants to merge 2 commits into
fakiolinho:masterfrom
HeyHugo:es-module-build

Conversation

@HeyHugo

@HeyHugo HeyHugo commented Feb 15, 2018

Copy link
Copy Markdown

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

HeyHugo commented Mar 21, 2018

Copy link
Copy Markdown
Author

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

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

@ezze

ezze commented Jan 9, 2020

Copy link
Copy Markdown

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

4 participants