I'm facing the same problem, I think the above answer prevents the code from being executed in production, but is still part of the bundled code