Function: shareWorkspaceLibraries

shareWorkspaceLibraries(libraries, tsConfigPath?): SharedWorkspaceLibraryConfig

Build an object of functions to be used with the ModuleFederationPlugin to share Nx Workspace Libraries between Hosts and Remotes.

Parameters

NameTypeDescription
librariesWorkspaceLibrary[]The Nx Workspace Libraries to share
tsConfigPath?stringThe path to TS Config File that contains the Path Mappings for the Libraries

Returns

SharedWorkspaceLibraryConfig