Skip to content

Commit

Permalink
Fix option key fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
es128 committed May 4, 2015
1 parent f035386 commit e6d5623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var anymatch = require('anymatch');

function BabelCompiler(config) {
if (!config) config = {};
var options = config.plugins && config.plugins.babel
|| config.plugins.ES6to5 || {};
var options = config.plugins &&
(config.plugins.babel || config.plugins.ES6to5) || {};
this.options = {};
Object.keys(options).forEach(function(key) {
if (key === 'sourceMap' || key === 'ignore') return;
Expand Down

0 comments on commit e6d5623

Please sign in to comment.