New vite:bundler package: Vite + Meteor

I finally managed to run and deploy a big Meteor+Svelte+Tailwind application using vite:bundler. It was hard. I had to:

  1. Replace all nested imports with require() (issue).
  2. Remove explicit Accounts imports (issue).
  3. Fork rdb:svelte-meteor-data because of this issue.
  4. Fork vite:bundler itself to make deployment with Docker (Disney’s image) possible (PR).
  5. Put all CSS files inside imports folder and import them in JS.
  6. Remove # from folders names (I had #lib and #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.

6 Likes