Remove support for IE11 (#9578)

This changes the Babel compilation targets to exclude IE 11,
which results in significant payload size savings.
This commit is contained in:
Buck Doyle
2021-02-02 13:14:51 -06:00
committed by GitHub
parent 7fd0a7c317
commit 4e0e33e7c0
2 changed files with 1 additions and 7 deletions

View File

@@ -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,
};

View File

@@ -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'),