Open timofei-iatsenko opened 1 week ago
Would really appreciate supress_stripping_message
because right now I'm having to patch this line in the @lingui/macro package const stripNonEssentialProps = false; // process.env.NODE_ENV == "production" && !opts.extract;
to keep the message values available so I can do something like this
const SOME_TEXT = msg`Some text`;
const object = {
originalValue: SOME_TEXT.message,
translatedValue: _(SOME_TEXT)
}
ToDo: motivation, related issues
Tasks:
Make configurable
strip_non_essential_fields
in the SWC plugin from outside. Now it's hardcoded to the ENV variablesupress_stripping_message
, which will allow strippingcontext
andcomment
but left message.Make the same options for Babel macro plugin
Make possible to register MessageCompiler in production, PR: https://github.com/lingui/js-lingui/pull/2035
Write the docs describing all configuration to achieve that.