- Can be combined with the build plug-in to share basic dependencies according to policies to reduce the number of module downloads and improve the loading speed of modules. - Only consume part of the export of the remote module and will not fully downloa
$ cnpm install @module-federation/runtime-tools
@module-federation/runtime-toolsModule federation runtime package collection. You can just install it instead of installing all the packages separately.
It includes the following packages:
@module-federation/runtime@module-federation/webpack-bundler-runtimeUsage
npm install @module-federation/runtime-tools
import runtime from '@module-federation/runtime-tools';
import runtime from '@module-federation/runtime-tools/runtime';
import webpackBundlerRuntime from '@module-federation/runtime-tools/webpack-bundler-runtime';
Copyright 2013 - present © cnpmjs.org | Home |