Is there a way of keeping the debug modules and the developer console out of a production build?

I was looking through the compiled output...