Skip to content
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

渐进式开发中的代码复用问题 #535

Open
wujianguo opened this issue Apr 6, 2021 · 0 comments
Open

渐进式开发中的代码复用问题 #535

wujianguo opened this issue Apr 6, 2021 · 0 comments

Comments

@wujianguo
Copy link

Is your feature request related to a problem? Please describe.

比如有这样一个场景,我现在要在现有项目中使用cml,做一个新的页面,使用组件导出的方式做渐进式开发,但是这个页面涉及到一个功能需要做个加密算法如my_aes,而我现有的工程中也有地方需要使用这个my_aes并且已经用上了,在移动端中我要进行这个my_aes加密,我可以使用CMLStorageModule调用原生的,那么在小程序端我要如何做呢。

引申:在渐进式开发中当我导出多个组件在原有项目中使用时,这多个组件又涉及到共享代码逻辑,我要如何做呢。注意,只是逻辑的复用,并没有界面的复用

Describe the solution you'd like
暂无.

Describe alternatives you've considered
私有 npm?

Additional context
暂无.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant