I am building a bundle of ReactJS files with Webpack.
Is it possible to detect inside of JSX files which Webpack mode is being used: "none"
, "development"
, or "production"
?
For example, I would like some console.log()
statements and global variables in development mode but not production.