Function: getNpmPackageSharedConfig

getNpmPackageSharedConfig(pkgName, version): SharedLibraryConfig | undefined

Build the Module Federation Share Config for a specific package and the specified version of that package.

Parameters

NameTypeDescription
pkgNamestringName of the package to share
versionstringVersion of the package to require by other apps in the Module Federation setup

Returns

SharedLibraryConfig | undefined