Coder Social home page Coder Social logo

module-federation-examples's People

Contributors

mizx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

module-federation-examples's Issues

Nested example is not correct

I think the nested example is not 100% accurate.

https://github.com/module-federation/module-federation-examples/tree/master/nested

Yes "technically" it works, but if the main goal is to mimic the functionality of un-federated modules (i.e npm packages). this example is not accurate.

the way in nested example gets it working is by including the remote address from app2 and app3 in the index.html. however this is not accurate as when we are using dep A in package.json, we do not need to include the deps of dep A. we simply include depA like so:


dependencies: {
 "depA": "version1"
}

vs

dependencies: {
"depA": "version 2",
"depA_subDep": "versionX"

....
"depA_subDepX": "..."
}

the current approach you have means that the host application needs to know each remote sub dep address (in the case of example, app3). which is not feasible at all.

imagine if this is a complex application, where app2 has multiple sub dependencies...that means the host app1 needs to know each of these.

[Question] Connect to a not Webpack container

Hello @mizx,
I have been testing the examples you have in the repo and it works really well!
However, I have been trying to do one little thing different with the Host one, in my project I have a legacy of a app running Play Framework 1.4.3, but they needed to use ReactJs, but not enough time to switch all the frontend to React (5 years of project).

So, I have create some small micro apps and injected in the HTML the react app that I wanted. Thats work but it is a big hack and will be harder and harder to maintain as it grows.
<script src="/public/reactJS/app.bundle.js"></script>

Have you tried to connect the same module federation in a dumb HTML or in a different app without NodeJS? or is it even possible?

Sorry, it was the place that I could find someone that know more about this new tech.

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.