Meteor 3 Sourcemapping

Hey Community,

I’m comparing Sentry and Monti at the moment for Client Logging and I want to add sourcemapping for better error logs. It seems that the standart-minifier package of meteor does not provide sourcemapping and the docs of monti suggesting zodern-standart-minifier which got no updates now for a while. Which minifier do you use to provide sourcemapping?

1 Like

zodern:standard-minifier-js is still maintained. There hasn’t been much need to update it.

6 Likes

Thanks for your response. I’m testing the zodern-standart-minifier together now with hide-production-sourcemaps. So far my builds fail with:

/build/.meteor/packages/zodern_standard-minifier-js/.5.3.1.nka808eq0i++os+web.browser+web.browser.legacy+web.cordova/plugin.fastMinifier.os/npm/node_modules/meteor/fastMinifier/node_modules/meteor-package-install-swc/.swc/node_modules/@swc/core/index.js:110:29: 
#16 202.8 x 'import.meta' cannot be used outside of module code.

Am I missing some config which is now needed?

A team member had also some attempts on this few months ago

Make sure your project is set up to use ES modules correctly, as that might resolve the issue.

You might also want to check your Meteor and package versions to ensure compatibility. If you haven’t already, consider looking at the minifier’s GitHub issues page for any related discussions or workarounds. It could be helpful to see if others have faced similar challenges.

1 Like