【问题标题】:In runtime, how can I change the value of remoteEntry in the module federation (microfrontend)在运行时,如何更改模块联合(微前端)中 remoteEntry 的值
【发布时间】:2022-09-28 18:51:40
【问题描述】:

如果我在remoteEntry 中更改环境变量的值(例如,更改baseUrl 以进行API 调用),它需要使用Webpack 重建remoteEntry 以使用新的remoteEntry 和新的baseUrl,但我想在运行时更改 baseUrl 而无需重建。 我怎样才能做到这一点?

    标签: webpack micro-frontend webpack-module-federation


    【解决方案1】:

    你找到解决方案了吗?我也在尝试做同样的事情。还没有能够实现这一点。

    【讨论】:

      猜你喜欢
      • 2021-05-11
      • 2022-07-29
      • 2022-08-16
      • 1970-01-01
      • 2022-06-16
      • 1970-01-01
      • 2011-09-30
      • 2022-08-09
      • 1970-01-01
      相关资源
      最近更新 更多