From 942b65648b87dc3256fed880e1c70bcf1b1e3185 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 3 Oct 2017 20:37:55 +0700 Subject: [PATCH] Adapt plugins-loader to es6 --- client/coral-framework/loaders/plugins-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-framework/loaders/plugins-loader.js b/client/coral-framework/loaders/plugins-loader.js index a9fed95ab..7683dae8d 100644 --- a/client/coral-framework/loaders/plugins-loader.js +++ b/client/coral-framework/loaders/plugins-loader.js @@ -21,7 +21,7 @@ module.exports = function(source) { this.cacheable(); const config = this.exec(source, this.resourcePath); const plugins = getPluginList(config).map((plugin) => `{ - module: require('${plugin}/client'), + module: require('${plugin}/client').default, name: '${plugin}' }`);