Skip to content

Commit 3f94b2d

Browse files
cexbrayatvikerman
authored andcommitted
feat(@schematics/angular): remove useless import for Ivy (#11874)
Using cli `6.2.0-beta.2` with the new `experimentalIvy` flag leads to: ERROR in src/app/app.module.ts(1,1): error TS6133: 'BrowserModule' is declared but its value is never read.
1 parent 8b7fa04 commit 3f94b2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schematics/angular/application/other-files/app.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { BrowserModule } from '@angular/platform-browser';
1+
<% if (!experimentalIvy) { %>import { BrowserModule } from '@angular/platform-browser';<% } %>
22
import { NgModule } from '@angular/core';
3-
<% if (routing) { %>
3+
<% if (routing && !experimentalIvy) { %>
44
import { AppRoutingModule } from './app-routing.module';<% } %>
55
import { AppComponent } from './app.component';
66

0 commit comments

Comments
 (0)