From e6d5623c07f31b8aa9cbc4920ece65cb9bf3aaf6 Mon Sep 17 00:00:00 2001 From: Elan Shanker Date: Mon, 4 May 2015 12:13:14 -0400 Subject: [PATCH] Fix option key fallback --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d683e6e..52542cb 100644 --- a/index.js +++ b/index.js @@ -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;