diff --git a/rewriter/src/rewrite.rs b/rewriter/src/rewrite.rs index 8cb37d0..71ba524 100644 --- a/rewriter/src/rewrite.rs +++ b/rewriter/src/rewrite.rs @@ -60,7 +60,7 @@ impl<'a> Visit<'a> for Rewriter { if s.property.name.to_string() == "location" { self.jschanges.push(JsChange::GenericChange { span: s.property.span, - text: "_location".to_string(), + text: "$s(location)".to_string(), }); } } diff --git a/static/rewriter_bg.wasm b/static/rewriter_bg.wasm index 731daba..6c538dd 100644 Binary files a/static/rewriter_bg.wasm and b/static/rewriter_bg.wasm differ