Skip to content

Commit a723af4

Browse files
alan-agius4dgp1130
authored andcommittedMay 4, 2020
feat(@schematics/angular): evergreen new applications
By default, we now generate new applications which support only evergreen browsers, as a result differential loading is now opt-in. A new flag `--legacy-browsers`, was added to generate applications which support non evergreen browsers such as Internet Explorer 11. **Note**: After an application is generated opting in and out of differential loading is still possible through the supported browsers configuration in the browserslist configuration file defaulted to `.browserslistrc`.
1 parent e2eed2c commit a723af4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+295
-351
lines changed
 

‎packages/angular_devkit/build_angular/src/utils/build-browser-features_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('BuildBrowserFeatures', () => {
2525
afterEach(async () => host.restore().toPromise());
2626

2727
describe('isDifferentialLoadingNeeded', () => {
28-
it('should be true for for IE 9-11 and ES2015', () => {
28+
it('should be true for IE 9-11 and ES2015', () => {
2929
host.writeMultipleFiles({
3030
'.browserslistrc': 'IE 9-11',
3131
});

‎packages/schematics/angular/application/files/.browserslistrc.template

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
# For additional information regarding the format and rule options, please see:
33
# https://github.com/browserslist/browserslist#queries
44

5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
58
# You can see what browsers were selected by your queries by running:
69
# npx browserslist
710

8-
> 0.5%
9-
last 2 versions
10-
Firefox ESR
11-
not dead
12-
not IE 9-11 # For IE 9-11 support, remove 'not'.
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major version
15+
last 2 iOS major versions
16+
Firefox ESR<% if (legacyBrowsers) { %>
17+
IE 9-11<% } else { %>
18+
not IE 9-11 # For IE 9-11 support, remove 'not'.<% } %>

0 commit comments

Comments
 (0)
Please sign in to comment.