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

fix(i18n): do not import default when importing a json as a module #732

Merged
merged 2 commits into from
Jan 16, 2021

Conversation

pikax
Copy link
Owner

@pikax pikax commented Jan 16, 2021

close #729

when importing json, it should not import default key.

This is caused by the module import to get the helpers: esModuleInterop

If I'm not mistaken babel appends __esModule: true to the import object, I just need to validate that, I couldn't get from the jest import to test.

@pikax pikax marked this pull request as ready for review January 16, 2021 09:00
@pikax pikax merged commit 1ef0912 into master Jan 16, 2021
@pikax pikax deleted the fix/i18n_esmodule_import branch January 16, 2021 09:00
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

Successfully merging this pull request may close these issues.

useI18n locale contains default when using import
1 participant