Skip to content

Compile esm version for better tree shaking in consuming projects#112

Open
kjg wants to merge 1 commit intoEOSIO:developfrom
paraffinIO:esm
Open

Compile esm version for better tree shaking in consuming projects#112
kjg wants to merge 1 commit intoEOSIO:developfrom
paraffinIO:esm

Conversation

@kjg
Copy link
Copy Markdown

@kjg kjg commented Apr 20, 2021

Without including the esm versions of the files it's not possible for consuming projects to tree shake out unused parts of libs.
That means over 1MB of react-icons gets pulled in for just the few icons that this package uses.

This change cut my package size (that depends on this lib) by over 500k!

Screen Shot 2021-04-20 at Apr 20, 05 22 09 PM

Fixes #103
Fixes #104
Fixes #105

@kjg
Copy link
Copy Markdown
Author

kjg commented Apr 20, 2021

This is an alternate approach to #105

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.

2 participants