3 ms·
Perhaps the best thing about Babel is its plugin-based architecture. As of Babel 7, even its parser accepts plugins. This not only makes it easy to keep up to
by rattray 8y ago
Perhaps the best thing about Babel is its plugin-based architecture. As of Babel 7, even its parser accepts plugins.
This not only makes it easy to keep up to the latest of ECMA's standards and extensions like JSX, Flow, TypeScript – it also makes it surprisingly easy to implement your own syntax extensions to JS (eg; https://wcjohnson.github.io/lightscript/ https://wcjohnson.github.io/lightscript/, which I have worked on).
Curious how this project is thinking about plugins and staying up-to-date sustainably.
- mintplant 8y ago> As of Babel 7, even its parser accepts plugins. Does it really? Last time I looked into this, the "parser plugins" were all fake: single-line modules which simply switched on hidden config flags in Babel to enable functionality already hard-coded into the core parser. Left a bad taste in my mouth that the developers weren't up-front about the true (non-)extensibility of the system.