Files
CPunisherandGitHub d04b9ba6b9 fix(es/minifier): Avoid const_to_let if reassigned (#11035)
**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
2025-09-02 17:09:20 +09:00
..