Skip to content

Commit

Permalink
feat(angular): use share helpers from module federation package (#12991)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 4, 2022
1 parent dc126ba commit 88b6748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@nrwl/storybook": "file:../storybook",
"@nrwl/webpack": "file:../webpack",
"@nrwl/workspace": "file:../workspace",
"@nrwl/module-federation": "file:../module-federation",
"@phenomnomnominal/tsquery": "4.1.1",
"@schematics/angular": "~14.2.0",
"chalk": "4.1.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/angular/src/utils/mf/with-module-federation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import {
import { readCachedProjectConfiguration } from 'nx/src/project-graph/project-graph';
import { extname } from 'path';
import {
getDependentPackagesForProject,
getNpmPackageSharedConfig,
readRootPackageJson,
SharedLibraryConfig,
sharePackages,
shareWorkspaceLibraries,
} from './mf-webpack';
import { getDependentPackagesForProject, readRootPackageJson } from './utils';
} from '@nrwl/module-federation';
import ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');

export type MFRemotes = string[] | [remoteName: string, remoteUrl: string][];
Expand Down

0 comments on commit 88b6748

Please sign in to comment.