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

是否支持对artusjs的应用进行bundle #160

Open
hardfist opened this issue Aug 2, 2022 · 3 comments
Open

是否支持对artusjs的应用进行bundle #160

hardfist opened this issue Aug 2, 2022 · 3 comments

Comments

@hardfist
Copy link

hardfist commented Aug 2, 2022

我们内部很多业务使用了类似egg的框架(基于约定式loader机制),碰到的一个问题就是在monorepo下部署较为麻烦,虽然存在一些方案可以简化这个部署过程如rush deploy, 但是artujs本身支持bundle的话,那么其部署就和webapp一样简单,不需要依赖其他的工具。
貌似artusjs仍然采用约定式loader的机制,很难做静态分析,从而导致bundle过程很难进行,不知道你们是否有更好的bundle方案,或者最佳实践。

@hyj1991
Copy link
Member

hyj1991 commented Aug 3, 2022

没有约定式的 loader 啊,现在就是单文件启动的

@atian25
Copy link
Member

atian25 commented Aug 3, 2022

artus 一个核心能力就是根据 manifest 来加载的,用来做 bundle 应该很简单

@hardfist
Copy link
Author

hardfist commented Aug 3, 2022

我看代码里是基于动态加载?有bundle的示例吗?

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

3 participants