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.

0 likes · 1 view · Oct 19, 2026
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 ...