mirror of
https://github.com/wassname/talk.git
synced 2026-07-22 13:00:29 +08:00
Rolling back since its not needed
This commit is contained in:
@@ -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(',')}
|
||||
];
|
||||
`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user