Comments (6)
Can we just make this work with vite ? https://github.com/MadaraUchiha-314/rollup-plugin-module-federation
It already uses the runtime and the sdk and has solved most of the problems related to supporting MF 2.0
Happy to collaborate on this. @zhangHongEn
FYI, I have been collaborating with @ScriptedAlchemy on this for the past few months and it's almost close to completion
from universe.
fantastic news @zhangHongEn! Will work on getting you answers asap.
@ScriptedAlchemy @zmzlois can we dig into this.
from universe.
Happily this is something we can expect to see as "officially" supported. @yyx990803 has put this on the roadmap for Rolldown which is going to be the basis for the next version of Vite.
from universe.
I am implementing this plugin, and I would like to ask here, how should I handle the first parameter of init and the shared of init, whether @module-federation/runtime should provide a merge api, or who can tell me how to do it, I am only one step away from completion
from universe.
how should I handle the first parameter of init and the shared of init
This is how you use the shareScope that's passed into init ^
from universe.
how should I handle the first parameter of init and the shared of init
This is how you use the shareScope that's passed into init ^
Thanks, this is very useful
I already support dev and build modes of vite, and have all the main features, but I haven't done other enhancements of 2.0, such as manifest.json and runtime plugins, etc. Can I PR here and then we can improve it together?
module-federation/vite#4
from universe.
Related Issues (20)
- [CORS]: @module-federation/nextjs-mf HOT 3
- Cannot use shared module in .mjs file correctly HOT 4
- Adding element to page with id that matches remote's name causes `TypeError: remoteEntryExports.init is not a function` HOT 2
- External modules not shared HOT 4
- [MF Plugin] "promise new Promise" syntax doesn't work with @ char in it HOT 4
- Entry runtime miss function "O" HOT 6
- esbuild plugin error: Top-level await is not available in the configured target environment HOT 1
- @module-federation/nextjs-mf version 8.4.0 breaks API routes
- Having production error - TypeError: (void 0) is not a function at .next/server/webpack-api-runtime.js:1:199 HOT 1
- Nextjs plugin doesn't work unless the "unsafe-eval" CSP header is set
- Vue Bridge package lacks `dist` HOT 4
- misleading error message when remoteEntry.files is empty
- Quick Start Error - Failed to load file HOT 4
- Project with tsconfig.json with compilerOptions.paths and path aliases usage fails to compile federated types HOT 1
- loading a remote wipes out the registered shared modules by the host even if they are declared singleton
- Missing `dist` in the release of `@module-federation/bridge-vue3` HOT 1
- Critical dependency warning in @module-federation/utilities due to dynamic import HOT 1
- add option to exclude shared dependencies from build
- Nx angular dynamic mfe got NG0203 error
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.