ModuleFederationPlugin 模块共享中的singleton

This hint only allows a single version of the shared module in the shared scope (disabled by default). Some libraries use a global internal state (e.g. react, react-dom). Thus, it is critical to have only one instance of the library running at a time.

这个提示允许在共享范围内中的共享模块的单个版本(默认情况下禁用), 有些库使用全局内部状态(如 react、 react-dom), 因此, 一次运行一个库实例是至关重要的。

太难了 翻完一知半解了 [泣不成声][泣不成声][泣不成声]
展开
评论