From 93d9f51d16711e6ec0763e1189eb1a57a5ba8e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Veres?= Date: Wed, 2 Dec 2020 20:26:04 +0100 Subject: fix(cli): add hygiene pass to transpile pipeline (#8586) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/ast.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/ast.rs') 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(), || { -- cgit v1.2.3