Comment Comment by AbhyudayaSharma Babel has macros too! My super small npm package gets git commit hashes using the babel-plugin-macros.https://www.npmjs.com/package/babel-plugin-macroshttps://github.com/AbhyudayaSharma/react-git-info parent AbhyudayaSharma 3 years ago
https://www.npmjs.com/package/babel-plugin-macros
https://github.com/AbhyudayaSharma/react-git-info