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 universe.
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 universe.
Related Issues (20)
- Optimizing the problem of overly long identifiers of the container entry module of the issuerPath in the stats.json file HOT 2
- @module-federation/native-federation-typescript - support destination folder, loadRemote typings and other improvements HOT 7
- Type file missing when using vue-tsc HOT 1
- remote component error in react when this version different HOT 5
- Add documentation / example for including module federation runtime via CDN in browser script tag HOT 4
- Module Federation not working with Content Security Policy (CSP) HOT 9
- getPublicPath or publicPath is not part of ModuleFederationPluginOptions HOT 5
- @mf-types. expose typings for shared modules HOT 1
- Infer shared modules based from the host's manifest file. HOT 2
- Duplicate network request for chunk from multiple entryfiles HOT 4
- The remote module is missing on the Window when running in the sandbox of the micro-frontend framework micro-app. HOT 3
- i try to use init() and app cant find it HOT 3
- Using the `revalidate` method to trigger hot reload can cause service crashes HOT 3
- dts for entries exposed with aliases are not emitting
- Can't create Error Fallback when any Remote fails. HOT 1
- Chrome Extension is not working due to empty `moduleInfo` HOT 2
- web worker error in host HOT 2
- Exact matching alias does not work as expected in bridge webpack plugin
- Shared dependency version cannot be resolved if installed at root of a monorepo
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 universe.