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

runtime & sdk shared #3285

Open
5 tasks done
userxiaya opened this issue Nov 27, 2024 · 2 comments
Open
5 tasks done

runtime & sdk shared #3285

userxiaya opened this issue Nov 27, 2024 · 2 comments

Comments

@userxiaya
Copy link

Describe the bug

打包后 @module-federation/ 里的 这两个包会放进remote.js里并且这两个包体积较大,且无法设置 shared 设置后会报错 希望这两个包可以设置共享

Reproduction

15

Used Package Manager

npm

System Info

rsbuild+vue3 @module-federation/echanced0.7.7

Validations

@userxiaya
Copy link
Author

找到折中方案了
在output 的 externals 里设置不打包然后在基座app里把当前插件设置进window即可

@ScriptedAlchemy
Copy link
Member

#3154

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

2 participants