mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user