1 | const getBabelEnv = () => {
|
2 | // This is similar to how `env` works in Babel:
|
3 | // https://babeljs.io/docs/usage/babelrc/#env-option
|
4 | // We are not using `env` because it’s ignored in versions > babel-core@6.10.4:
|
5 | // https://github.com/babel/babel/issues/4539
|
6 | // https://github.com/facebookincubator/create-react-app/issues/720
|
7 | const env = process.env.BABEL_ENV || process.env.NODE_ENV;
|
8 | return env;
|
9 | };
|
10 |
|
11 | module.exports = getBabelEnv;
|