Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 17, 2023
1 parent ef829b2 commit 78ced24
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion crates/swc_ecma_transforms_base/src/rename/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,19 @@ where
// (function-like nodes) does not have eval. This `eval` check includes
// `eval` in children.
//
// We calculate the top level map first,
// We calculate the top level map first, rename children, and then rename the
// top level.
//
//
// Order:
//
// 1. Top level map calculation
// 2. Per-unit map calculation
// 3. Per-unit renaming
// 4. Top level renaming
//
// This is because the the top level map may contain a mapping which conflicts
// with a map from one of the children.
//
// See https://github.com/swc-project/swc/pull/7615
if has_eval {
Expand Down

0 comments on commit 78ced24

Please sign in to comment.