KermanX

@kermanx.github.io

TS/RS dev | @sli.dev team member | Undergraduate at USTC.edu.cn

I recently tried to implement a TypeScript type inferrer in ~6k lines of Rust. Most of the hardest features are already supported, but there is still a lot of effort to make it usable - and then Oxlint can use the type information for linting. Repo: github.com/KermanX/simp...

Bild

Tree Shaker now supports object property mangling! Most importantly, (unlike some optimizers), Tree Shaker's object property mangling doesn't require any extra assumptions about the input code. Demo:

https://kermanx.github.io/tree-shaker/#N4IglgdgDgrgLiAXCApgDygewE5wAQBmMEAxnGJhHiZgLaxwoAmA+lNplCrgJ4AUxANYRMAdwgAaPAENZUgEaKAlHmAAdKtUoBnfIJQ88AXjxCR4vAH48AcgKZMNvIlvzp2GwG4NeLRF14mPIAVsaqPr6EDi6y0hIRvm7YLoryEQC+3po0/pgANigAdHmYAOZ8QcEA2vo8ALpKWeka6Fi4hMRkFFSVKGQs0traYKUQfLEKyuHZOviVYQDyIX1whYPDo3zA6VLAUZgxsng7qnhJKYrHjRE52vlFJeWVhfaY1zO5BcVlFSGFSe9mhAiKRyJQ8ABhOhQLZ4dicABy0loKCu0182BQcBg2CoAB4mGAAG4APmA8KgSJR6TxAHpCaSmi0MDh8CCuuCAIJQGGxFTqTSY7G4vB4qH0OEcSnIlBGYCxdJ4WkkpkQEASEDsFDaLFIECYmi0FEQJjMdUgJiYACykDABB4SAI0jyOo1ztE0h42gAkhA8pAUI7nTr0kA=

🚀 Slidev v0.50.0 is out! This version is packed with so many updates, @kermanx.github.io and the team were truly on 🔥 📤 Export your slides right from your browser ⚡️ Vite 6 and Jiti 2 🆚 Improved VS Code ext 🌈 Dropped Prism.js, fully on @shiki.style 🐞 A lot of bug fixes github.com/slidevjs/sli...

Release v0.50.0 · slidevjs/slidev

🚨 Breaking Changes Remove prism support  -  by @KermanX in #1700 (01b35) Allow to remove shortcuts  -  by @twitwi and @KermanX in #1922 (a47b8)    🚀 Features Support snapshoting overview  -  ...

github.com

Why is it so hard to support the `@__PURE__` annotation in my tree-shaker🥲 For DCE, it is just "remove the call if the return value is unused". But for tree shaking, I can't think of a correct & performance-acceptable way to support it.