Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Why not exporting as default when there's no need to use destructuring #41
First, thank you for all your work on this lib, it is greatly appreciated
Why not just export this as default instead of making it so that we have to use destructuring to import it?
Reason I ask is if we are doing code splitting it requires more code, when it could just be exported as default since there's nothing else being exported (so even tree shaking wouldn't matter in this situation)
This could be both a named export and default export (to maintain backwards compatibility)
In a release I'm working on, there will be a default export available as well.