Comments (2)
yeah you cannot externalize shared modules since the module may not exist on the other end.
Anything exposed or shared must be bundled to ensure the dependency can be fetched when needed.
from core.
yeah you cannot externalize shared modules since the module may not exist on the other end. Anything exposed or shared must be bundled to ensure the dependency can be fetched when needed.
So Webpack externals are not allowed to be used in remote modules?
Is it impossible to use webpack-node-externals
in a host app that performs streaming SSR then? This seems like a major limitation for larger apps since it results in many "the request of a dependency is an expression"
errors from binary dependencies being included in the bundle.
Is there some Webpack mechanism for pointing transitive react dependencies in node_modules
(i.e. other node_modules
dependencies that require react or react-dom) to the bundled react shared dependency chunks instead of the node_modules
react dependencies? This approach would ensure that the bundled shared dependency chunks are singletons, and that they are correctly shared to remotes without the use of externals.
from core.
Related Issues (20)
- loading a remote wipes out the registered shared modules by the host even if they are declared singleton HOT 8
- Missing `dist` in the release of `@module-federation/bridge-vue3` HOT 2
- Critical dependency warning in @module-federation/utilities due to dynamic import HOT 6
- add option to exclude shared dependencies from build HOT 6
- Nx angular dynamic mfe got NG0203 error HOT 6
- @module-federation/enhanced v0.3.1 includes reference to missing module in .d.ts file HOT 2
- TS errors after switching from webpack's Module Federation to Module Fedaration V2 HOT 1
- federation runtime vue 3 remotes with getPublicPath generates double calls (one with wrong public path) HOT 1
- Support for React-Native
- `errorLoadRemote` doesn't trigger HOT 2
- @mf-types.zip not being generate since 0.2.7 HOT 4
- Federation Runtime can't use SDK function while running at Nextjs HOT 3
- Feature: MFE import functions HOT 5
- Federation Runtime not sharing same react context HOT 10
- React with Web Worker Error
- [ Federation Runtime ]: The remote "app" is already registered. If you want to merge the remote, you can set "force: true".
- Issue: Incomplete Type Generation with DTS Plugin in module-federation/enhanced
- Docs: Users need documentation on common errors when starting with module-federation
- Navigation cross remotes get 404
- `runtimePlugin_js__WEBPACK_IMPORTED_MODULE_1__ is not a function`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.