EOSIO / ual-reactjs-renderer

This library provides a React renderer around the Universal Authenticator Library
MIT License
23 stars 35 forks source link

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

Open kjg opened 3 years ago

kjg commented 3 years ago

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 commented 3 years ago

This is an alternate approach to #105