React is running in production mode, but dead code elimination has not been applied

I am using MUP to deploy my Meteor application, and MontiAPM reveals that React is not properly configured for production:

Some searching has not yielded any information on how to debug or address this problem. Any advice on how to proceed?

The problem was that I had debug: true in the buildOptions field of my mup.js file. Setting debug: false allowed the code to be minified and thus solved the issue.

Thank you to the Meteor Up team for helping me solve this problem.

2 Likes