Skip to content

How to compile messages to .js format instead of .mjs #1252

Answered by semoal
SelinaMT asked this question in Q&A
Discussion options

You must be logged in to vote

Check your configuration if you're using compileNamespace: es that exports to esm modules, which must be as .mjs, instead of that you can use cjs or ts if you're using TypeScript
https://lingui.js.org/ref/conf.html#compilenamespace

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SelinaMT
Comment options

Answer selected by SelinaMT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants