-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Avoid default exports for locale files #586
Comments
Agreed. The way that the locale modules are written is really complicating the usage of this library. If they exported something like "localeEn" by default, then it may be easier to use in a dynamic situation? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm currently trying to use this library inside an angular library. When building the library the locale import will interpreted in a way that I receive
{default: {…}, __esModule: true}
instead of the locale object. This seems to be a common problem as described here: https://esbuild.github.io/content-types/#default-interopMaybe it would be a good approach to avoid the default exports for the locale files, so this problem does not occur for other users too.
The text was updated successfully, but these errors were encountered: