-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
consider publshing an ESM bundle #182
Comments
See #138 for prior discussion on this. Effectively, the current packaging is as efficient as it can be for a complete YAML library, and switching to a completely-ES module build would not bring additional savings. Being able to drop features at build-time would require some significant refactoring, and probably necessitate separate custom builds for any given feature set, or complicate the current API significantly. Some of my 2.0 work has made that more possible, e.g. eventually offering an endpoint that offered |
would you be open to the https://github.com/esm-bundle/ repackaging option? It makes a @esm-bundle/yaml avail if so. it then automatically builds as you publish i think. else i guess we can just add a workaround for the warning in angular, but my issue is i'm publishing an angular library package which has this as peerDependency, so my end users get the warning too. |
That seems like a rather hacky solution for Angular's false positive warning. It may get rid of it, but it'll mean that any user of your library that also uses Given that we're definitely moving towards an ES module world, my intent is to work towards maintaining just Fundamentally, the reason you're getting a warning is probably the minimal CommonJS wrapper around the actual internal ES module implementation of the library's browser build, The browser endpoints were in fact pure ES modules for a while, up until 1.9.3, but that needed to get reverted due to #163. Getting multi-platform releases to work right is hard, especially as I want the API to stay the same. |
Closing, as there's no clear action that ought to be taken here. |
Angular 10 now warns when CommonJS or AMD are present:
Consider publishing an ESM bundle to avoid this issue. Possibly using https://github.com/esm-bundle/
See also https://stackoverflow.com/questions/62592903/upgrading-to-angular-10-fix-commonjs-or-amd-dependencies-can-cause-optimizatio
The text was updated successfully, but these errors were encountered: