Skip to content

Commit 3bf831f

Browse files
committed
fix(@schematics/angular): only show legacy browsers deprecation warning when option is used
This ensures that the deprecate warning is only displayed when the option is used.
1 parent 2d6e82f commit 3bf831f

File tree

1 file changed

+1
-1
lines changed
  • packages/schematics/angular/ng-new

1 file changed

+1
-1
lines changed

packages/schematics/angular/ng-new/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function(options: NgNewOptions): Rule {
6363
skipInstall: true,
6464
strict: options.strict,
6565
minimal: options.minimal,
66-
legacyBrowsers: options.legacyBrowsers,
66+
legacyBrowsers: options.legacyBrowsers || undefined,
6767
};
6868

6969
return chain([

0 commit comments

Comments
 (0)