News for hackers. Stuff that matters.
Re:Node.js PrePrcoessor – Extend Node.js to support macros/u... by bearjaws on Friday August 23, 2024 @09:16AM (#41328759)
You should look into how this is done at scale with something like Babel.

Babel parses JS into a AST (abstract syntax tree) and then lets you react to specific pieces of code.

Here is an example of the power of a tool like Babel: https://github.com/christina-de-martinez/babel-plugin-glowup...

There are no comments on this comment yet.