moize icon indicating copy to clipboard operation
moize copied to clipboard

[Feature Request] Tree-shakeable API

Open Rush opened this issue 1 year ago • 1 comments

Not sure if you ever considered it but the way moize APIs are structured it's impossible to tree shake them. For example I don't use React and would be nice if it was possible for tooling to remove some unused features.

In order for APIs to be tree shakeable some of the features should be provided in the form of free-form functions. For example moizeReact vs moize.react. Or some other form of composable functions.

Obviously it's a matter of convenience vs gain but perhaps something worth considering.

Rush avatar Jan 31 '23 15:01 Rush