Skip to content

Commit

Permalink
fix: plugin context, enhancePluginContextHook not working
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLian authored and liujuping committed Dec 9, 2022
1 parent 335314a commit f6feef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
},
"resolutions": {
"@builder/babel-preset-ice": "1.0.1"
}
}
},
"repository": "git@github.com:alibaba/lowcode-engine.git"
}
3 changes: 1 addition & 2 deletions packages/designer/src/plugin/plugin-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu
options: IPluginContextOptions,
contextApiAssembler: ILowCodePluginContextApiAssembler,
) {
contextApiAssembler.assembleApis(this);
this.plugins = plugins;
const { pluginName = 'anonymous' } = options;
this.logger = getLogger({ level: 'warn', bizName: `designer:plugin:${pluginName}` });
Expand All @@ -49,8 +50,6 @@ export default class PluginContext implements ILowCodePluginContext, ILowCodePlu
if (enhancePluginContextHook) {
enhancePluginContextHook(this);
}

contextApiAssembler.assembleApis(this);
}

setPreference(
Expand Down

0 comments on commit f6feef2

Please sign in to comment.