Giter Club home page Giter Club logo

Comments (4)

ScriptedAlchemy avatar ScriptedAlchemy commented on July 26, 2024

You can / should use a runtime plugin to handle this. Use the resolveShare hook and you can replace args.resolver on the hook then just make the resolver return window.react etc.

from universe.

ScriptedAlchemy avatar ScriptedAlchemy commented on July 26, 2024

https://github.com/module-federation/module-federation-examples/blob/master/runtime-plugins/control-sharing/control-share.ts

from universe.

althaf101 avatar althaf101 commented on July 26, 2024

@ScriptedAlchemy

At-least for the moment, we are actually locked into the builtin package that comes with webpack. Can't yet switch to the independent @module-federation/enhanced package. In this case,

  1. Is there any side-effects / issues that you see with the current fix that I have applied ?
  2. Is there a better fix available than the current one that I have applied ?

from universe.

ScriptedAlchemy avatar ScriptedAlchemy commented on July 26, 2024

No fix that i know of.

Im not sure what side effects tapping the hook twice will have. It might repeat code in your runtime

If it works, then run with it till it doesn't.

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.