4 ms·
It requires flow analysis, which is really hard to get right. I don't think there's a tree-shaking library that uses the TypeScript compiler API for static anal
by aleclarsoniv 2y ago
It requires flow analysis, which is really hard to get right. I don't think there's a tree-shaking library that uses the TypeScript compiler API for static analysis purposes. Maybe because it would be slow?
edit: The creator of Terser is working on flow analysis for his new minifier, according to him[1].
[1]: https://github.com/terser/terser/issues/1410#issuecomment-1710349693 https://github.com/terser/terser/issues/1410#issuecomment-17...
- aleclarsoniv 2y ago* Not the creator of Terser, but the lead maintainer