I finally managed to run and deploy a big Meteor+Svelte+Tailwind application using vite:bundler. It was hard. I had to:
- Replace all nested imports with
require()(issue). - Remove explicit Accounts imports (issue).
- Fork
rdb:svelte-meteor-databecause of this issue. Forkvite:bundleritself to make deployment with Docker (Disney’s image) possible (PR).- Put all CSS files inside
importsfolder and import them in JS. - Remove
#from folders names (I had#liband#startup).
Is the game worth the candle? I hope, it is. HMR updates are lightning fast (previously I had to wait for a minute sometimes). I’m not sure about the overall performance yet (my biggest issue on Windows) but it seems to be better.
The project definitely needs more attention. Fixing knowing issues, React support, Vite 4 support are the most important steps.