message: fix: update hook plugins load method
diff: @@ -37,11 +37,13 @@ export class Patcher implements IPatcher {
  applyPlugins() {
  for (let [name, plugin] of this.plugins.entries()) {
  if (plugin.enabled) {
  - plugin.target(this, plugin.initConfig || {});
  + if (plugin.target && typeof plugin.target === 'function') {
  + new plugin.target(this, plugin.initConfig || {});
  debug(`Patcher ${this.getModuleName()} load plugin ${name}.`);
  }
  }
  }
  + }
  getShimmer() {
  return shimmer;
  