mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Adapt plugins-loader to es6
This commit is contained in:
@@ -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}'
|
||||
}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user