Open stoefln opened 9 months ago
Just realized, that if I am restarting the webpack dev server process between the edits, that I can work around the issue. It's just really annoying and I have to be super-careful not to accidentally delete stuff that was translated already
It seems to be an issue when using hot reload. The need of restart the server every changes I do on the code is showing that there is something wrong with this library with new webpack version. I'm trying to figure out this, but if anyone here already sorted out this, please update this issue with the solution.
Describe the bug
When I change a string somewhere it seems that the babel plugin regenerates the all translation files. For example I added german translations to ./extractedTranslations/de/common.json, but those were deleted when I edited some strings and the compiler ran again.
How to reproduce
I am not sure if this is only on my end, or if this is expected behavior. Am I missing a config setting somewhere?
Babel configuration:
Expected behavior
I'd expect the plugin to only remove the keys that are not existing anymore and change the ones that I changed in my sources.
What actually happens
Resource files get overwritten.
Your environment