Skip to content

Commit

Permalink
Merge pull request #420 from ngyikp/fix-config-validation-babel-env
Browse files Browse the repository at this point in the history
Fix config validation of `babel.env`
  • Loading branch information
insin authored Jan 17, 2018
2 parents a35049d + dcf16c8 commit 60fe735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function processBabelConfig({report, userConfig}) {

// env
if ('env' in userConfig.babel) {
if (typeOf(env) !== 'Object') {
if (typeOf(env) !== 'object') {
report.error(
'babel.env',
env,
Expand Down

0 comments on commit 60fe735

Please sign in to comment.