File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
crates/swc_ecma_preset_env/src Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,9 @@ where
211211 // ES2016
212212 let pass = add ! ( pass, ExponentiationOperator , es2016:: exponentiation( ) ) ;
213213
214+ // Single-pass compiler
215+ let pass = ( pass, options. into_pass ( ) ) ;
216+
214217 // ES2015
215218 let pass = add ! ( pass, BlockScopedFunctions , es2015:: block_scoped_functions( ) ) ;
216219 let pass = add ! (
@@ -327,13 +330,11 @@ where
327330 bugfixes:: template_literal_caching( )
328331 ) ;
329332
330- let pass = add ! (
333+ add ! (
331334 pass,
332335 BugfixSafariIdDestructuringCollisionInFunctionExpression ,
333336 bugfixes:: safari_id_destructuring_collision_in_function_expression( )
334- ) ;
335-
336- ( pass, options. into_pass ( ) )
337+ )
337338}
338339
339340pub fn transform_from_env < C > (
You can’t perform that action at this time.
0 commit comments