Describe the bug
My compiled messages files contains encoded UTF characters instead of simple utf

To Reproduce
Compile po file with Cyrillic characters
Expected behavior
Simple not encoded utf chars
@lingui/cli": "3.2.3",
"@lingui/macro": "3.2.3",
"@lingui/react": "3.2.3",
@babel/[email protected]Could you provide a reproduction repo please Max?
You could use this as base :)
https://codesandbox.io/s/nextjs-lingui-djzqm
@semoal without any changes repo already has this problem.

Correct utf char Jm茅no was replaced to Jm\xE9no
I tough this was fixed by babel, i'll take a further look
Well, I propose my solution, tell me what you think @tricoder42
1潞 Create a new configuration param called: compilerBabelOptions we already have a extractBabelOptions, so for me has sense to difference options of babel by command.
2潞 Edit https://github.com/lingui/js-lingui/blob/main/packages/cli/src/api/compile.ts#L45 to merge our defaut configuration of the generator with compileBabelOptions, basically this will allow to BABEL 7 users to modify .linguirc to accept https://github.com/mathiasbynens/jsesc#minimal:
{
"locales": ["en", "ru"],
"compilerBabelOptions": {
"jsescOption": {
"minimal": true
}
}
}
Also I think that is not a big problem of having ASCII codes in compiled catalogs, because if your html contains in the problems are gone...
@max-mykhailenko As you can see .po file the accent is working properly and also in the view, so probably this fix will try to fix something that is negligible
@semoal for me it's not something negligible because it increases total file size in five times.

I already got this fixed, I'll create a merge request asap
As I wrote in #906, since we don't support Babel 6, what about making it the default behavior? This could definitely save lot of space as @max-mykhailenko pointed out
Has sense to me, we can set this to default yes
I'll update the pr later im out home right now
Thank you @semoal. If we make it default we should definitely mention it in changelog. If it changes msgids for someone, it might break translations (well, break. Those translations will be empty until they move translations from previous msgids)
Yes once released we just have to edit the changelog with any addtioanl comments .
馃槺 Released 3.3.0 with this fix/feature introduced!
npx update-by-scope @lingui
@semoal @tricoder42 thank you guys, awesome work!