lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.31k stars 70 forks source link

any way to use vm-dom for "vanilla" JSX? #68

Closed Wulfre closed 1 year ago

Wulfre commented 1 year ago

There is a package developed by the same people as violentmonkey for transforming JSX into "vanilla" elements but I am not sure if there is a way to use it along with vite and this plugin, but it may be something worth investigating.

https://github.com/violentmonkey/vm-dom

lisonge commented 1 year ago

This question has nothing to do with vite-plugin-monkey

https://vitejs.dev/guide/features.html#jsx

https://github.com/lisonge/vite-plugin-monkey/blob/73d6db261ec12f3e8aac595aed342d72ca3c2a9b/playground/vm-dom/vite.config.ts#L1-L27

https://github.com/lisonge/vite-plugin-monkey/blob/73d6db261ec12f3e8aac595aed342d72ca3c2a9b/playground/vm-dom/src/main.tsx#L1-L10

https://github.com/lisonge/vite-plugin-monkey/blob/73d6db261ec12f3e8aac595aed342d72ca3c2a9b/playground/vm-dom/dist/vm-dom.user.js#L1-L40