Skip to content

Commit

Permalink
fix: remove inline plugin for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Sep 8, 2017
1 parent 729e7c7 commit 60baa11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config/babelrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const {ifAnyDep, parseEnv} = require('../utils')

const isTest = process.env.NODE_ENV === 'test'
const isPreact = parseEnv('BUILD_PREACT', false)
const isRollup = parseEnv('BUILD_ROLLUP', false)
const isWebpack = parseEnv('BUILD_WEBPACK', false)
Expand Down Expand Up @@ -33,7 +32,7 @@ module.exports = {
{removeImport: true},
]
: null,
isTest || isRollup
isRollup || isWebpack
? require.resolve('babel-plugin-transform-inline-environment-variables')
: null,
require.resolve('babel-plugin-transform-class-properties'),
Expand Down

0 comments on commit 60baa11

Please sign in to comment.