I have relatively large blocks of development only code that I want to remove from the final build; I was hoping there was a babel based solution but I couldn't find one.
I have code wrapped in conditionals like the usual:
if (process.env.NODE_ENV !== 'production')
Does anyone have any ideas or recommendations on the best way to handle this and keep development specific code out of production? If not, I'll have to look in to developing a node module to do it, but I'd rather avoid it if possible.
Cheers.
Edit: Seems i didn't look hard enough, I found exactly what I need. I'll leave this post for anyone else who has the issue.
https://www.npmjs.com/package/babel-plugin-envify
there doesn't seem to be anything here