From 14f192f56f0bd56bdf289180ca22ae9c5fd0ba4a Mon Sep 17 00:00:00 2001 From: Tao Zhou Date: Thu, 6 Apr 2023 23:08:20 -0700 Subject: [PATCH] feat: strip non esential only for production env (#47) --- src/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.rs b/src/options.rs index 0fc6b3d..67fe389 100644 --- a/src/options.rs +++ b/src/options.rs @@ -29,7 +29,7 @@ pub struct RuntimeModulesConfigMapNormalized { impl LinguiJsOptions { pub fn to_options(self, env_name: &str) -> LinguiOptions { LinguiOptions { - strip_non_essential_fields: !(matches!(env_name, "development")), + strip_non_essential_fields: matches!(env_name, "production"), runtime_modules: RuntimeModulesConfigMapNormalized { i18n: ( self.runtime_modules.as_ref()