When can we expect Meteor 3.0 to support Svelte 5?

Since both Meteor 3.0 and Svelte 5 are now officially released, it would be great to have them working together. Svelte 5’s runes system and other improvements would make development much more efficient. Looking forward to seeing these two powerful tools integrated!

1 Like

@zodern does melte support v5?

We have the following discussion. Svelte 5 · Issue #31 · zodern/melte · GitHub

Meteor still doesn’t support Svelte 4 since we are waiting for Meteor to support the package.json export field. I was hoping to have time this fall to implement a minimal version that would at least support Svelte 4, but so far I haven’t. I don’t know if there is anything else we need to support svelte 5, besides updating zodern:melte.

Upgrades to Angular also don’t work because of this. Can this be prioritised? This looks like such a huge missing feature

Thank you for your reply. The discussion of this issue seems to indicate that we shouldn’t expect Meteor 3.x to support Svelte 5.x in the near future. So sad about this :sob:

Thank you for your reply! I looked at the Meteor package you developed to enhance Svelte functionality - you’re truly at a godlike level! If even someone like you thinks there’s no clear path to make Svelte 5.x compatible with Meteor 3.x, I guess I’ll have to give up on that idea :sob:

I finished an implementation of the package.json exports field: Resolve package.json exports by zodern · Pull Request #13520 · meteor/meteor · GitHub

I was initially planning to just implement enough for svelte 5 to work, but after I started I realized that since this feature drastically changes how the resolver works, I would have to implement everything to avoid creating new problems.

Once there is a beta version of Meteor with this, we can start working on supporting svelte 4 and 5.

8 Likes

Huge props for taking on the package.json exports implementation! Really impressed by your thorough approach - going all in on the complete resolver rewrite instead of just patching for Svelte 5. That’s exactly the kind of robust engineering that makes Meteor great.

Can’t wait to see the Svelte 4/5 support land in Meteor 3.x. Thanks for putting in the work to keep Meteor modern and maintainable. I really appreciates it.

Can’t wait for this to be ready. :crossed_fingers:

I am using svelte 5 with Meteor-vite. Its really good. Svelte5 is a perfect match for Meteor I feel.

1 Like

@thomastraum Can you give some pointers as to how?

  • perhaps some steps to follow?
  • how are you achieving reactivity?
  • are you still using the rdb:svelte-meteor-data package?
    Thanks in advance!

For whoever stumbles here like I did, see this: GitHub - JorgenVatle/meteor-vite: ⚡ Replace Meteor's bundler with Vite for blazing fast build-times
It targets Meteor v3 specifically as well as Svelte.

nothing special, install meteor-vite, then follow install guidelines for svelte5. doesn’t work with melte

2 Likes

OK I have to thank you @thomastraum for opening my eyes, it seems I was living under a rock.

But I’d also add that - IMHO - this should be how Meteor comes from the start, using Vite. It’s not just the build speed, but far more importantly, the fact that it’s a much faster way to keep up with updates in other frameworks (e.g. Svelte etc.).

Thanks, and a Happy New Year to all!

1 Like

More official support for Vite such that we could get Vitest working out of the box would be pretty rad too

(If you want to do unit tests on components that have to be processed by Vite eg Svelte and Vue you’d have to write those components as runtime agnostic at the moment AFAICT, Vitest freaks out when it sees Meteor imports)

The combination of Meteor 3.0 and Svelte 5 would be a game-changer. Hopefully, the integration happens soon; Svelte 5’s runes system has so much potential!

And speaking of Vue… We need a properly supported integration with Tracker…

I managed to get Meteor 3 / Vue 3 to work with Vue options API and the vue-meteor-tracker beta version, with a little hack to simulate the $subReady which wasn’t working. I think that @Akryum at some stage was being sponsored to get this going since he wrote the package, but not sure what happened. @fredmaiaarantes?

Related topic: Subscriptions and live queries for Vue 3 projects without vue-meteor-tracker

Akryum had too much on his plate and couldn’t keep working on it. His last major contribution was the Vite integration, which is now maintained by @jorgenvatle.