3 ms·
Macros for JavaScript have been available for a long time[0], you can even use the C preprocessor[1]. Also I wrote a macro plugin for babel just yesterday [2]
by phpnode 11y ago
Macros for JavaScript have been available for a long time[0], you can even use the C preprocessor[1]. Also I wrote a macro plugin for babel just yesterday [2]
[0] http://sweetjs.org/ http://sweetjs.org/
[1] http://www.nongnu.org/espresso/js-cpp.html http://www.nongnu.org/espresso/js-cpp.html
[2] https://github.com/codemix/babel-plugin-macros https://github.com/codemix/babel-plugin-macros