ParentFull threadphpnode·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/[1] http://www.nongnu.org/espresso/js-cpp.html[2] https://github.com/codemix/babel-plugin-macrosView on HN