diff options
Diffstat (limited to 'cli/ast.rs')
-rw-r--r-- | cli/ast.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/ast.rs b/cli/ast.rs index ab32e4301..10d7b5383 100644 --- a/cli/ast.rs +++ b/cli/ast.rs @@ -42,6 +42,7 @@ use swc_ecmascript::parser::Syntax; use swc_ecmascript::parser::TsConfig; use swc_ecmascript::transforms::fixer; use swc_ecmascript::transforms::helpers; +use swc_ecmascript::transforms::hygiene; use swc_ecmascript::transforms::pass::Optional; use swc_ecmascript::transforms::proposals; use swc_ecmascript::transforms::react; @@ -305,6 +306,7 @@ impl ParsedModule { helpers::inject_helpers(), typescript::strip(), fixer(Some(&self.comments)), + hygiene(), ); let program = swc_common::GLOBALS.set(&Globals::new(), || { |