Skip to content

Commit

Permalink
fix(angular): remove unnecessary unused entry module import from new …
Browse files Browse the repository at this point in the history
…mf remote apps (#10749)
  • Loading branch information
leosvelperez committed Jun 15, 2022
1 parent ea76587 commit 25b2682
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/angular/src/generators/remote/remote.ts
Expand Up @@ -86,17 +86,10 @@ export class AppComponent {}`;

tree.write(
joinPathFragments(project.sourceRoot, 'app/app.module.ts'),
`/*
* This RemoteEntryModule is imported here to allow TS to find the Module during
* compilation, allowing it to be included in the built bundle. This is required
* for the Module Federation Plugin to expose the Module correctly.
* */
import { RemoteEntryModule } from './remote-entry/entry.module';
import { NgModule } from '@angular/core';
`import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { RouterModule } from '@angular/router';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
Expand Down

0 comments on commit 25b2682

Please sign in to comment.