AsmComponentsModule 没有导出组件
我们的团队需要向 ASM 模块添加自定义代码,以便在我们的项目中实现 SSO 登录,并且我们意识到 AsmComponentsModule
不会导出其声明的组件。这使得我们很难重用它们,因为我们必须创建自己的自定义模块,它是 AsmComponentsModule 的副本,其中包含的组件只是其上声明的组件的扩展。
这是有问题的,因为我们还必须复制 HTML 和 SCSS 文件。如果该模块上声明了更多组件,问题会更大。
有更好的方法吗?或者我们应该期待未来修复包含此模块上的 exports
数组?
Our team needs to add custom code to the ASM module in order to make SSO login possible in our project, and we realised the AsmComponentsModule
doesn't export its declared components. This made it difficult for us to reuse them, since we had to create our own custom module which is a copy of AsmComponentsModule
, containing components that are simply extensions of the components declared on it.
This is problematic, since we also had to duplicate HTML and SCSS files. The problem would be even bigger if this module had even more components declared on it.
Is there a better way to do this? Or we should expect a future fix containing the exports
array on this module?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PR 修复:https://github.com/SAP/spartacus/pull/15282
将发布为4.3.1和3.4.7补丁。
PR Fix: https://github.com/SAP/spartacus/pull/15282
Will be released into 4.3.1 and 3.4.7 patches.