From 5245dfaef9ecd4578f5d4554b11a6190c5a2b239 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 6 Apr 2017 19:44:26 -0300 Subject: [PATCH] Rolling back since its not needed --- client/coral-framework/loaders/plugins-loader.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/coral-framework/loaders/plugins-loader.js b/client/coral-framework/loaders/plugins-loader.js index da304cf76..83bdae33b 100644 --- a/client/coral-framework/loaders/plugins-loader.js +++ b/client/coral-framework/loaders/plugins-loader.js @@ -18,11 +18,14 @@ module.exports = function(source) { const config = this.exec(source, this.resourcePath); const plugins = getPluginList(config); - plugins.map(plugin => `{module: require('plugins/${plugin}/client/index.js'), plugin: '${plugin}'}`); + const list = []; + plugins.forEach(plugin => { + list.push(`{module: require('plugins/${plugin}/client/index.js'), plugin: '${plugin}'}`); + }); return stripIndent` module.exports = [ - ${plugins.join(',')} + ${list.join(',')} ]; `; };