rewrite location properly

This commit is contained in:
Percs 2024-07-15 00:16:48 -05:00
parent ad8c6aec66
commit 39f11ef812
2 changed files with 1 additions and 1 deletions

View file

@ -60,7 +60,7 @@ impl<'a> Visit<'a> for Rewriter {
if s.property.name.to_string() == "location" { if s.property.name.to_string() == "location" {
self.jschanges.push(JsChange::GenericChange { self.jschanges.push(JsChange::GenericChange {
span: s.property.span, span: s.property.span,
text: "_location".to_string(), text: "$s(location)".to_string(),
}); });
} }
} }

Binary file not shown.