diff --git a/packages/formatjs/transform/src/lib.rs b/packages/formatjs/transform/src/lib.rs index 38361ee4..74ddc41d 100644 --- a/packages/formatjs/transform/src/lib.rs +++ b/packages/formatjs/transform/src/lib.rs @@ -1215,7 +1215,7 @@ fn json_value_to_expr(json_value: &serde_json::Value) -> Box { .iter() .map(|(key, value)| { PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp { - key: PropName::Ident(IdentName::new(key.to_string().into(), DUMMY_SP)), + key: PropName::Str(Str::from(key.clone())), value: json_value_to_expr(value), }))) })