feat(core): Allow loading of plugin data
This commit is contained in:
parent
a85342e6dc
commit
aa1d76ee80
2 changed files with 7 additions and 12 deletions
packages/core/src
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue