core
core copied to clipboard
runtime & sdk shared
Describe the bug
打包后 @module-federation/ 里的 这两个包会放进remote.js里并且这两个包体积较大,且无法设置 shared 设置后会报错 希望这两个包可以设置共享
Reproduction
15
Used Package Manager
npm
System Info
rsbuild+vue3 @module-federation/echanced0.7.7
Validations
- [X] Read the docs.
- [X] Read the common issues list.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Module federation issue and not a framework-specific issue.
- [X] The provided reproduction is a minimal reproducible example of the bug.
找到折中方案了 在output 的 externals 里设置不打包然后在基座app里把当前插件设置进window即可
https://github.com/module-federation/core/pull/3154
@userxiaya i think the best way to solve this, is to upgrade your moduel-federation plugin to the latest version and use the externalRuntime and the provideExternalRuntime config in experiments to get this effect. you can check the doc here
Stale issue message