Giter Club home page Giter Club logo

Comments (6)

MadaraUchiha-314 avatar MadaraUchiha-314 commented on July 26, 2024 2

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.

zackarychapple avatar zackarychapple commented on July 26, 2024 1

fantastic news @zhangHongEn! Will work on getting you answers asap.

@ScriptedAlchemy @zmzlois can we dig into this.

from universe.

zackarychapple avatar zackarychapple commented on July 26, 2024

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.

zhangHongEn avatar zhangHongEn commented on July 26, 2024

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

https://github.com/zhangHongEn/module-federation-vite/blob/9c3713ec24cb459f5f998ccb820c176cef65ae5c/packages/module-federation-vite/src/index.js#L48

from universe.

MadaraUchiha-314 avatar MadaraUchiha-314 commented on July 26, 2024

how should I handle the first parameter of init and the shared of init

https://github.com/MadaraUchiha-314/rollup-plugin-module-federation/blob/main/packages/rollup-plugin-module-federation/src/index.ts#L585

This is how you use the shareScope that's passed into init ^

from universe.

zhangHongEn avatar zhangHongEn commented on July 26, 2024

how should I handle the first parameter of init and the shared of init

https://github.com/MadaraUchiha-314/rollup-plugin-module-federation/blob/main/packages/rollup-plugin-module-federation/src/index.ts#L585

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.