Bun and Meteor?

I think to do it right would be somewhat of a large undertaking, but on the plus side, could give people an even stronger reason for adopting Meteor. Imagine a completely modernized Meteor with Bun under the hood for best in class performance.

For example, you’d likely want to use Bun websockets instead of ws, sockjs, etc. Meteor packages would probably need to be ported to npm.

IMO, it’d be ideal for a skunkworks type team to do this in parallel of ongoing Meteor improvements beyond 3.0 so core contributors stay focused on the top features mentioned by community members in Seeking Community Input: Meteor.js Roadmap

It’d be a great opportunity to strip out legacy code and fix the issues highlighted here:

Reify was ahead of its time and nested imports are useful but it feels like maybe it’s time to move on. Am I correct in thinking that the only benefit of Reify at this point is nested imports? Could dynamic import() be used instead where needed? I understand they aren’t exactly the same but maybe it gets you to the same spot with the tradeoff of execution time. Please correct me if I’m wrong :slightly_smiling_face:. It looks like you can use import and require in the same file with Bun so I think that enables nesting with require when needed.

7 Likes