Open endigo9740 opened 4 years ago
Any news on this, getting warnings with my Angular 10 app. Thanks in advance.
Seems ironic that
howler.js is an audio library for the modern web
yet still no ES module... Any movement on this would be greatly appreciated.
I refactored the core modules to native ESM today, keeping the public API intact, as well as the implementation details.
Check it out and please help out if you also want to use ESM in production!
Howler.js is providing the following warning in the Angular CLI for the new v10 release:
Starting with Angular 10 the Angular CLI now provide warnings for CommonJS modules. Read more about it here: https://blog.angular.io/version-10-of-angular-now-available-78960babd41
And here: https://angular.io/guide/build#configuring-commonjs-dependencies
They reference the following article regarding the issues with CommonJS: https://web.dev/commonjs-larger-bundles/
Additionally I've seen a few discussions by Angular staff members on Github discussing potentially dropping CommonJS support by default, and making it an opt-in feature in the future.
I realize the Angular team is taking a very strong armed approach here, but their reasoning seems solid. Needless to say I'd love to see ESM support if possible. Thanks!