babel-plugin-transform-global-defs
Transform Global definitions that are available at build time
Install
npm install babel-plugin-transform-global-defs
Options
In
if processenvNODE_ENV !== 'production' DEBUG = true;
Out
if 'production' !== 'production' DEBUG = true;