From 51a6fbdae92a8bc8c3afd87f3b393cec705b462a Mon Sep 17 00:00:00 2001 From: Andrey Khomenko Date: Wed, 4 Oct 2017 12:29:16 -0400 Subject: [PATCH] [BUGFIX beta] Fix broccoli-babel-transpiler cache warnings --- lib/stripped-build-plugins.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 }; };