Faster Builds in Meteor 3.3: Modern Build Stack with SWC and Bundler Optimizations

x ‘eval’ and ‘arguments’ cannot be used as a binding identifier in strict mode

If you rename arguments to args, it passes the SWC syntax check. In strict mode, eval and args are reserved identifiers. Though, that seems to be within the blaze package? If that is, could you provide a PR fixing this?

Also it seems that the owner of ostrio:flow-router-extra and montiapm need to fix these:

Yes, if you can report to those repositories or fix these in a PR it would be great.

Verbose mode lets you check SWC compatibility with your project and ensures you fix all fallbacks using this mechanism.

When we deliver the Meteor-RSPack integration, which uses SWC to transpile and bundle your app code, your project will need to be fully compatible with SWC since RSPack likely won’t offer fallbacks. In Meteor 3.3 modern build stack, you can keep Babel fallbacks for the few affected files and still get good performance. If you want the full benefits of the future modern bundler integration, start preparing now.

1 Like