Skip to content
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

Open
krechtern opened this issue Feb 1, 2024 · 1 comment
Open

Avoid default exports for locale files #586

krechtern opened this issue Feb 1, 2024 · 1 comment

Comments

@krechtern
Copy link

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-interop

Maybe 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.

@ConnectGrid
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants