How does Meteor determine prodOnly?

#1

How does Meteor know if the built app is running in production or not?

What exactly determines if prodOnly packages get run?

#2

If you are running meteor with the --production flag (which you shouldn’t do for production)
or if you are running a built version of the app

#3

That’s what I thought. Is there any reason why a built version would not use prodOnly packages?

#4

Good question! I don’t use prodOnly packages very often so haven’t run into this problem before