Skip to content

Commit

Permalink
Consider BABEL_ENV as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthachatterjee committed Jul 12, 2019
1 parent 68cd22f commit 3af698f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-preset-gatsby/src/index.js
Expand Up @@ -2,7 +2,7 @@ const path = require(`path`)

const resolve = m => require.resolve(m)

const IS_TEST = process.env.NODE_ENV === `test`
const IS_TEST = (process.env.BABEL_ENV || process.env.NODE_ENV) === `test`

const loadCachedConfig = () => {
let pluginBabelConfig = {}
Expand Down

0 comments on commit 3af698f

Please sign in to comment.