const config: ModuleFederationConfig = {
name: 'ceph-dashboard',
- /**
- * To use a remote that does not exist in your current Nx Workspace
- * You can use the tuple-syntax to define your remote
- *
- * remotes: [['my-external-remote', 'https://nx-angular-remote.netlify.app']]
- *
- * You _may_ need to add a `remotes.d.ts` file to your `src/` folder declaring the external remote for tsc, with the
- * following content:
- *
- * declare module 'my-external-remote';
- *
- */
- remotes: []
+ remotes: [],
+ shared: (libraryName, sharedConfig) => {
+ if (libraryName === '@angular/localize' || libraryName === '@angular/localize/init') {
+ return false; // do not share these, import directly via polyfills
+ }
+ return sharedConfig;
+ },
};
-/**
- * Nx requires a default export of the config to allow correct resolution of the module federation graph.
- **/
export default config;
-