Skip to content

Commit 66604ef

Browse files
clydinKeen Yee Liau
authored andcommitted
feat(@schematics/angular): enabled conditional ES2015 polyfills for new apps
1 parent cdb99bc commit 66604ef

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/schematics/angular/application/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, workspace: Workspace
207207
`${projectRoot}src/styles.${options.style}`,
208208
],
209209
scripts: [],
210+
es5BrowserSupport: true,
210211
},
211212
configurations: {
212213
production: {

packages/schematics/angular/utility/workspace-models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export interface BrowserBuilderOptions extends BrowserBuilderBaseOptions {
6060
maximumWarning?: string;
6161
maximumError?: string;
6262
}[];
63+
es5BrowserSupport?: boolean;
6364
}
6465

6566
export interface ServeBuilderOptions {

0 commit comments

Comments
 (0)