Skip to content

Commit

Permalink
Remove support for IE11 (#9578)
Browse files Browse the repository at this point in the history
This changes the Babel compilation targets to exclude IE 11,
which results in significant payload size savings.
  • Loading branch information
backspace committed Feb 2, 2021
1 parent 7fd0a7c commit 4e0e33e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions ui/config/targets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@

const browsers = ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions'];

const isCI = !!process.env.CI;
const isProduction = process.env.EMBER_ENV === 'production';

if (isCI || isProduction) {
browsers.push('ie 11');
}

module.exports = {
browsers,
};
1 change: 1 addition & 0 deletions ui/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = function(defaults) {
modes: ['javascript'],
},
babel: {
include: ['proposal-optional-chaining'],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
require.resolve('ember-auto-import/babel-plugin'),
Expand Down

0 comments on commit 4e0e33e

Please sign in to comment.