Interesting, I cooked up something similar a few years ago to use on my personal website and d3.js viz projects. Originally for use with webpack/babel but now I use it exclusively with Vite.<p><a href="https://www.npmjs.com/package/jsx-pragma" rel="nofollow">https://www.npmjs.com/package/jsx-pragma</a>