Skip to content

Commit

Permalink
fix(angular): remove implicit deps creation from mfe (#9799)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 authored and FrozenPandaz committed Apr 13, 2022
1 parent 0528b03 commit ee4174c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 42 deletions.
23 changes: 0 additions & 23 deletions packages/angular/src/generators/setup-mfe/lib/add-implicit-deps.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/angular/src/generators/setup-mfe/lib/index.ts
@@ -1,6 +1,5 @@
export * from './add-cypress-workaround';
export * from './add-entry-module';
export * from './add-implicit-deps';
export * from './add-remote-to-host';
export * from './change-build-target';
export * from './fix-bootstrap';
Expand Down
16 changes: 0 additions & 16 deletions packages/angular/src/generators/setup-mfe/setup-mfe.spec.ts
Expand Up @@ -135,22 +135,6 @@ describe('Init MFE', () => {

expect(mfeConfigContents).toContain(`'remote1'`);
});
it('should update the implicit dependencies of the host when --remotes flag supplied', async () => {
// ACT
await setupMfe(tree, {
appName: 'app1',
mfeType: 'host',
remotes: ['remote1'],
});

// ASSERT
const projectConfig: ProjectConfiguration = readProjectConfiguration(
tree,
'app1'
);

expect(projectConfig.implicitDependencies).toContain('remote1');
});

it('should add a remote application and add it to a specified host applications webpack config when no other remote has been added to it', async () => {
// ARRANGE
Expand Down
2 changes: 0 additions & 2 deletions packages/angular/src/generators/setup-mfe/setup-mfe.ts
Expand Up @@ -6,7 +6,6 @@ import { readProjectConfiguration, formatFiles } from '@nrwl/devkit';
import {
addCypressOnErrorWorkaround,
addEntryModule,
addImplicitDeps,
addRemoteToHost,
changeBuildTarget,
fixBootstrap,
Expand All @@ -30,7 +29,6 @@ export async function setupMfe(tree: Tree, options: Schema) {
generateWebpackConfig(tree, options, projectConfig.root, remotesWithPorts);

addEntryModule(tree, options, projectConfig.root);
addImplicitDeps(tree, options);
changeBuildTarget(tree, options);
updateTsConfigTarget(tree, options);
setupServeTarget(tree, options);
Expand Down

0 comments on commit ee4174c

Please sign in to comment.