mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
**Description:** I move the process of `const_to_let` from `postcompress` to `Optimizer` because varinfo is need to check if the variable is reassigned. I'm also curious why `const_to_let` is disabled in https://github.com/swc-project/swc/pull/11035/files#diff-dd713fdbfb1b9c77d20d446319255c3d41a169213b8825f43aacc0ee04f4c90f **Related issue:** - Closes https://github.com/swc-project/swc/issues/11034