-
-
Notifications
You must be signed in to change notification settings - Fork 56
Rollup / Vite integration #49
Comments
Thank you! Our webpack config is quite simple: https://github.com/nodegui/svelte-nodegui/blob/main/demo/webpack.config.js I'm unfamiliar with Vite, but to port it to something like Rollup, I think the main thing that would be needed would be a Rollup equivalent of Vite is famous for using esbuild under-the-hood, but I'm not sure how that works for Node environments (it is typically used in browser environments). Contributions welcome! |
I have tried to simply bundle
So I just set Here is my example project, hope it could inspire you. |
Thanks @msyfls123! I will take a look! @shirakaba As far as Vite goes, it's built on rollup and supports all rollup config options. Sveltekit is built on Vite which is built on Rollup so it should be possible. Sveltekit builds for node by default with svelte-adapter-node. I believe it leverages ESBuild's native node bundling support. As far as using |
It's a valid workaround. I think I might have gave up and done the same with
Oh nice, sounds promising :)
That certainly looks like it might do the trick! |
There is a simple way to use vite is use vite api. Just build a script that uses the vite plugin which add logic during I made a react-based template, vue and svelte also should be work : react-nodegui-vite-starter |
Hey there! Absolutely love this project!!
I was wondering if there was a story around integration with rollup / vite? Perhaps there is an example integration I could read over?
Anyways- thanks for this awesome project. It's a much needed addition to the native landscape!
The text was updated successfully, but these errors were encountered: