-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommonJS to ESM Modules #632
Comments
@mtpultz1977 |
@pooyaj when using this with Angular you get this warning during builds:
It's the reliance on |
It looks like there are several other dependencies outside of
|
Added an issue to |
We have implemented analytics-next with react context as described in the readme and got an 150kb increased main bundle. That's insane for some simple tracking. When I check bundlephobia you will see an loadLegacySettings export that's 25kb. |
I assume this is the issue y'all are discussing, and for my future self. To fix |
The use of CommonJS was initially intended for backend development back in the 2009/2010 when initially introduced, but when used on the frontend it prevents proper tree shaking within applications, and can result in large bundle sizes.
Is there roadmap for transition from CommonJS to ESM Modules?
The text was updated successfully, but these errors were encountered: