Replies: 2 comments 1 reply
-
为什么要将模块打包成两个版本呢?opensumi 模块本身并没有强区分 web 或 electron,有也只是在代码里根据 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@hanbingzi 目前 Core 项目中实现跨平台复用的逻辑基本上为逻辑判断,即通过环境判断执行逻辑,通过 常用的环境判断为 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我编写的模块,会同时打包成为web版本和electron版本,如果我使用ide-startup或ide-electron项目,都只能打包成为一种版本,我希望像core那样,编写的代码是一个模块,可以被ide-startup和ide-electron项目引用,这样我就能在一个地方写代码,多种方式打包,如何才能实现这种方式?或者能给一下大体建议吗?
Beta Was this translation helpful? Give feedback.
All reactions