1
0
Fork 0

feat(core): Allow loading of plugin data

This commit is contained in:
Joost De Cock 2022-09-12 18:01:37 +02:00
parent a85342e6dc
commit aa1d76ee80
2 changed files with 7 additions and 12 deletions
packages/core/src

View file

@ -454,7 +454,7 @@ Pattern.prototype.on = function (hook, method, data) {
}
Pattern.prototype.__loadPlugins = function () {
for (const plugin of this.config.plugins) this.use(plugin)
for (const plugin of this.config.plugins) this.use(plugin, plugin.data)
return this
}