fix: target es2024 with meteor bundle#1775
Merged
Merged
Conversation
Walkthrough
ChangesDependency and resolution updates
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
nytamin
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



About the Contributor
This pull request is posted on behalf of Superfly
Type of Contribution
This is a: Bug fix
Current Behavior
There have been some unexpected runtime errors in the meteor application (eg #1772)
Looking into this, I believe this to be because meteor is building our application code to target a really old ES standard, resulting in code like:
New Behavior
This adjusts the meteor build config to target the version of node that meteor runs with (22) instead of aiming for browser backwards compatibility. We don't need browser compatibility because our webui is packaged by vite instead.
This includes a yarn patch currently, I shall offer this upstream to see what can be done to avoid needing this going forward
After merging, devs may need to run
rm -rf meteor/node_modules/.cache/rspackto clear the rspack cache and generate code with the new configTesting
I have inspected the built app.js file and confirmed that the amount of polyfil is dramatically reduced in our code.
Affected areas
Time Frame
Other Information
Status