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

externals @module-federation/webpack-bundler-runtime no work #3821

Closed
ckken opened this issue Apr 23, 2024 · 1 comment
Closed

externals @module-federation/webpack-bundler-runtime no work #3821

ckken opened this issue Apr 23, 2024 · 1 comment

Comments

@ckken
Copy link

ckken commented Apr 23, 2024

externals:{
// work
'@module-federation/runtime': 'GLobalLib.MFRuntime',
'@module-federation/sdk': 'GLobalLib.MFSDK',
// no work
 '@module-federation/webpack-bundler-runtime': 'GLobalLib.MFWPR',
'@module-federation/webpack-bundler-runtime/constant': 'GLobalLib.MFWPR_CONSTANT'
}
@ScriptedAlchemy
Copy link
Member

ScriptedAlchemy commented Apr 24, 2024

It cant be external, it IS webpack runtime. Making it external pretty much deletes all the federation runtime module code.

bundler runtime is what RuntimeModule binds to, it use to be inside the webpack runtime. So it cant be external

You also cannot share this across other instances. We rely on require.federation.bundlerRuntime - this has to be 1 per runtime, if you try to share it - it will break other things as it cannot share instances

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