-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@alifd/build-plugin-lowcode插件 如何传customPlugins问题 #2701
Labels
discussion
Discussion / 方案探讨
Comments
试一下:
|
尝试了下绝对路径这种写法,pluginContextMap 多了一项,plugins 没添加上
|
先加上一些日志,看一下 plugin 是不是没有执行哈。 |
我debug了下,发现以下问题
|
customPlugins 我看了一下代码里还没有实现,只是留了一个口子,我们的插件文档上也没有这个属性对应的 API,你是从哪里看到这个配置上的呢~ https://www.npmjs.com/package/@alifd/build-plugin-lowcode |
如果希望联调插件和组件的话,可以使用我们提供的注入调试的方式来进行调试会更加简单和便捷。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug (required) / 详细描述 bug(必填)
请问 customPlugins 如何正确传递,尝试了以下两种方法都未生效,
第一种:传递函数类型
{customPlugins: [()=> {}]}
第二种: 传递字符串类型
{customPlugins: ['./testPlugin.js']}
A clear and concise description of what the bug is. / 请提供清晰且精确的 bug 描述
内部处理 customPlugins 用了
customPlugins: JSON.stringify(customPlugins)
, 传函数的话 会被过滤掉To Reproduce (required) / 如何复现 bug?(必填,非常重要)
Steps to reproduce the behavior: / 详细复现步骤:
English version example:
中文版示例:
Expected behavior (required) / 预期行为(必填,非常重要)
A clear and concise description of what did you expect to happen. / 请清晰和精确的描述你预期的行为
Screenshots (optional) / bug 截图(可选)
Sceenshots for further information. (If applicable.) / 一些有用的截图将会帮助我们更好的明确以及定位问题
Environments (please complete the following information) (required): / 请提供如下信息(必填)
Additional context (optional) / 更多额外信息(可选)
Any other context of the problem here. / 可以追加更多的额外信息,帮助定位问题
The text was updated successfully, but these errors were encountered: