diff --git a/lib/stripped-build-plugins.js b/lib/stripped-build-plugins.js index 4565a1d5c2f..9bd2a6cb1f8 100644 --- a/lib/stripped-build-plugins.js +++ b/lib/stripped-build-plugins.js @@ -75,9 +75,8 @@ module.exports = function(environment) { // ensures that a `baseDir` property is present on the babel plugins // that we will be using, this prevents ember-cli-babel/broccoli-babel-transpiler // from opting out of caching (and printing a giant warning) - plugins.forEach(Plugin => { - addBaseDir(Plugin); - }); + plugins.forEach((pluginWithOptions) => addBaseDir(pluginWithOptions[0])); + return { plugins, postTransformPlugins }; };