Comments (3)
Does the same functionality happen with standard webpack federation (v1)?
from module-federation-examples.
If you mean if reusing the same instance of a dependency is a common behavior of MF 1.0 and 1.5, yes it is.
The behavior of sharing dependencies but having multiple instances is implemented by my MF 1.5 plugin here. It's not part of MF 1.0 nor 1.5, but it does use MF 1.5 Plugin API to hook into the runtime.
Since MF 1.0 does not have a plugin API at all, it would need to be implemented as a Webpack plugin or directly implemented in the Module Federation 1.0 plugin. Ideally, this would be a feature implemented in MF 1.0 and 1.5, no need for additional plugins.
from module-federation-examples.
Yeah no i was more asking about if our new enhanced plugin had a issue that webpack did not.
Okay so generally, these instances are shared as you see.
You can patch it in and out of the webpack cache, which tbh may be the only way to do this type of thing (you should check what happens in production when module id is numeric)
I dont think there is a good option here to make "forgetful" modules, without possibly creating a new module type and module factory on the compiler end to do this. Like EagerIsolatedModule or something
from module-federation-examples.
Related Issues (20)
- Remote is online but error log says offline HOT 1
- "simple-node" example fails if update "@module-federation/node" dependency to "2.0.11" HOT 2
- Module not found: Can't resolve 'encoding' in '../node_modules/node-fetch/lib' HOT 3
- Please use Angular17.2 as the shell, use the Native Federation package, Angular12 as the remote, use the Module Federation package. Is there any such example? HOT 1
- Is there any example of using server rendering with rspack? HOT 1
- vite-react-microfrontends demo missing file HOT 5
- nextjs(host)+ react webpack(remote):No ModuleFederationPlugin(s) found. HOT 15
- Any Next.js 14 example? HOT 2
- nextjs-v13 routing does not work HOT 1
- nextjs-v13 getServerSideProps not working HOT 10
- Using external-remotes-plugin with @module-federation/nextjs-mf HOT 1
- Uncaught SyntaxError: Unexpected token function when use module federation v1.5 HOT 3
- Code Nextjs-v14 throws error when try to run HOT 5
- Hot Module Reloading is solved! HOT 1
- [Question] Shared modules are duplicate in multi-bundle files of MF v8.2.2 above HOT 14
- Can I Remove remote.js?[hash] for cache remote.js HOT 2
- NPM package unavailable - nextjs-shared-v14 HOT 1
- [Bug][Nextjs13] Uncaught TypeError: Cannot read properties of undefined (reading 'consumes') HOT 2
- Examples issue HOT 3
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 module-federation-examples.