Skip to content

Commit

Permalink
feat: strip non esential only for production env (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
taozhou-glean authored Apr 7, 2023
1 parent 0e62e28 commit 14f192f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 14f192f

Please sign in to comment.