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

Allow to use an Ecmascript module as config in addition to CommonJS module file. #52

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

cpontvieux-systra
Copy link
Contributor

gettext.config.mjs is now possible in addition to gettext.config.js or gettext.config.cjs.

This allows to import other Ecmascript modules for gettext dynamic configuration for instance.

…odule file.

gettext.config.mjs is now possible
@lzurbriggen lzurbriggen merged commit 4e8f28a into jshmrtn:master Dec 5, 2023
@lzurbriggen
Copy link
Collaborator

@cpontvieux-systra thank you! just released 3.0.0-beta.3 with your changes.

@cpontvieux-systra
Copy link
Contributor Author

cpontvieux-systra commented Dec 5, 2023

Sorry my bad @lzurbriggen , it’s not fully working until upgrading CosmiConfig to version 8.2 at least, and 9.0 to have correct errors: "cosmiconfig": "^9.0.0"

I’ve manually resolved it in my package.json and it’s working ok.

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.

2 participants