Recast Pretty-Printer Fix for Import Alias ReprintingRecast Pretty-Printer Fix for Import Alias Reprinting
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Open source contribution: merged PR #1445 in recast, a widely used JavaScript code pretty-printer. Fixed a reprinting bug: adding an import alias could drop the imported name, and removing one could leave a redundant "as". Reprints the specifier when the alias shape changes, with regression tests across Esprima, Babel and TypeScript parsers. Merged by the maintainer.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started