diff --git a/src/index.js b/src/index.js index 3cfd652..cbcfc9f 100644 --- a/src/index.js +++ b/src/index.js @@ -45,7 +45,7 @@ export default (...options) => { } if (!processor.plugins) { - plugins.forEach(plugin => tree = plugin(ctx)) + plugins.forEach(plugin => ctx = plugin(ctx)) } return typeof res === 'function' ? res(null, ctx) : ctx;