Add Function constructor proxy
This commit is contained in:
Avad3 2024-07-28 21:19:39 -04:00
commit e6b237c525

View file

@ -68,6 +68,13 @@ impl<'a> Visit<'a> for Rewriter {
});
}
fn visit_debugger_statement(&mut self, it: &oxc_ast::ast::DebuggerStatement) {
self.jschanges.push(JsChange::GenericChange {
span: it.span,
text: "".to_string(),
});
}
fn visit_import_declaration(&mut self, it: &oxc_ast::ast::ImportDeclaration<'a>) {
let name = it.source.value.to_string();
let text = self.rewrite_url(name);