Levi

Results 16 issues of Levi

### Describe the feature Expressions like `++[0][0]`, `[0][0] += 1` should be compressed to their literal value, e.g. `1`, if the argument is a literal https://play.swc.rs/?version=1.7.0&code=H4sIAAAAAAAAA0vT0NaONogFIk1rLq40DQhbQdtWwRAoAACKdnIZHgAAAA%3D%3D&config=H4sIAAAAAAAAA32UO5LbMAyG%2Bz2FR3WKjIsUe4B0OQOHFkGZDkloCNBrzY7vHujlddaQOgkffoAEQHy%2BHQ7Nhdrm%2FfApn%2FLT20JQHv9ioSGzvYmlgTZZakvoufmx0guNyNtIMJnuM2nYlg54UtHx5%2FG4KJqISLAqFlsKOfjhOWeLqS9A9GQTq4SsCTLT%2F%2FqFFfwYAZf6bD8hRrB5hxhLJmSGDooWuMUYbU9grrYoUcaT2hIItRQjrAzO9AV7lWcXOGCWnK%2FUgXWmRQcKCgVaDlfQZJJLZJnkesp9JuzgVLtu6vM3NVxtrJaVnHCbWiKnVaKeMRAbX7NWwhlu1GCGS3G%2FK4M3BbiW%2FKq7YMgbPfkLIBWIlijbBFrcycPLPG2p%2Fa4yZC8jy4PCZb61W2bopKgmBK9UdqwMFA5aNwu42sJY2VY7zoI3ykfBgQHvZVaU0PQRuD1rSXnoAb0CpL%2FWa1M1A%2FN4hRt8fBA7%2BLfckvUBWzyS5fM2pSGdMO4kSMBndDsO0grGbVxkS9z6bV6zAxkNcKpLpQm8LgF5AIwmTvvyZTbkeUhE00U8fa2JxeH%2B2MPJ5i7CM72%2FLbxJ6OrElh0%2FtnfezL%2BaL6d1Ca8HaAL9WYXzfr%2F%2FA1SPPyYvBgAA ### Babel plugin or...

enhancement

**Description:** This PR addresses the issue described in #8713 **BREAKING CHANGE:** This will break existing unit tests that use `fold_module`/`visit_module`/`visit_mut_module` if the visitor is intended to work for both modules...

**Description:** Trailing parameters in functions/arrow expressions can be dropped if they're not referenced inside the function body without introducing side effects. e.g. `function f(a, b, c) {f(a);}` -> `function f(a)...

### Describe the feature I was curious if a PR for mangling class method names would be accepted. This would be a (likely optional) feature that could be enabled in...

enhancement

I was wondering if a PR would be accepted that changes the `Alphabet::new` function, or adds a new one, that doesn't have the check that prevents an `Alphabet` being created...

### Describe the feature When running something like `UPDATE=1 cargo test`, if an output file already exists for the test, say `test.js`, and `test.js` contains invalid code, e.g. `a =...

enhancement