Adapt plugins-loader to es6

This commit is contained in:
Chi Vinh Le
2017-10-03 20:43:19 +07:00
parent b1753ecdce
commit 942b65648b
@@ -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}'
}`);