Code Monkey home page Code Monkey logo

Comments (7)

lzxb avatar lzxb commented on July 23, 2024

2.0的使用模块联邦,所以移除了remote-view组件,你可以看下这个例子:
服务导出:
https://github.com/fmfe/genesis/blob/master/examples/ssr-mf-about/genesis.ts#L30

服务依赖声明:
https://github.com/fmfe/genesis/blob/master/examples/ssr-mf-about/genesis.ts#L39

调用其它服务的导出:
https://github.com/fmfe/genesis/blob/master/examples/ssr-mf-home/src/common/create-app-client.ts#L1

完整的可以看下这两个例子:
https://github.com/fmfe/genesis/tree/master/examples

image

from gez.

lzxb avatar lzxb commented on July 23, 2024

可以看下文档对于模块联邦的教程:
https://github.com/fmfe/genesis/blob/master/docs/zh-CN/webpack-module-federation.md

from gez.

llongst avatar llongst commented on July 23, 2024

原先用 remote,有开发说明,现在用MF,客户端调用有相关例子吗?
image

from gez.

lzxb avatar lzxb commented on July 23, 2024

一样的 ,不区分客户端和服务端。

from gez.

llongst avatar llongst commented on July 23, 2024

谢谢了,如果方便,麻烦加一下我的微信:llongst,不方便也没事

from gez.

llongst avatar llongst commented on July 23, 2024

调试ssr-mf-home这个demo,出现如下错误,是什么原因?
image

from gez.

lzxb avatar lzxb commented on July 23, 2024

已解决

from gez.

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.