'use strict';

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

const isCI = !!process.env.CI;
const isProductionLikeBuild = ['production', 'preview'].includes(process.env.EMBER_ENV);

if (isCI || isProductionLikeBuild) {
  browsers.push('last 1 edge versions');
  browsers.push('firefox esr'); //sometimes points to the last 2 ESR releases when they overlap
  browsers.push('last 1 ios versions');
  browsers.push('> 1%'); // any browser with more than 1% global market share
}

module.exports = {
  browsers
};

'use strict';

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

const isCI = !!process.env.CI;
const isProductionLikeBuild = ['production', 'preview'].includes(process.env.EMBER_ENV);

if (isCI || isProductionLikeBuild) {
  browsers.push('last 1 edge versions');
  browsers.push('firefox esr'); //sometimes points to the last 2 ESR releases when they overlap
  browsers.push('last 1 ios versions');
}

module.exports = {
  browsers
};

Drop support for unsupported browsers
Drop support for unsupported browsers

This set of browsers that we target did not match our published support
matrix and was including IE11 which does not have CSS Grid support and
looks terrible. Instead we should only target browsers that we actually
support.
