Skip to content

Commit d27a52a

Browse files
committed
pass order
1 parent 4fd617c commit d27a52a

File tree

1 file changed

+5
-4
lines changed
  • crates/swc_ecma_preset_env/src

1 file changed

+5
-4
lines changed

crates/swc_ecma_preset_env/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

339340
pub fn transform_from_env<C>(

0 commit comments

Comments
 (0)