Skip to content

Commit

Permalink
refactor(index): incorrect work with cli, close #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jan 13, 2017
1 parent 0b8b619 commit f38071b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const loadPlugin = (plugin, warning) => {
export default (...options) => {
let warning = [];

return [(ctx, res) => {
return (ctx, res) => {
const processor = postProcessor(ctx);
const config = postSequence(postConfig(...options)[processor.name].plugins, {processor: processor.name, namespace: true});
const plugins = Object.keys(config)
Expand All @@ -35,5 +35,5 @@ export default (...options) => {
}

return plugins.forEach(plugin => plugin(ctx, typeof res === 'function' ? res() : res));
}];
};
};

0 comments on commit f38071b

Please sign in to comment.