Function: shareWorkspaceLibraries

shareWorkspaceLibraries(workspaceLibs, sharedWorkspaceLibs?, tsConfigPath?): SharedWorkspaceLibraryConfig

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

Parameters

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

Returns

SharedWorkspaceLibraryConfig