mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Only transpile for IE11 target in CI & production builds
no issue - makes debugging during development easier because there's a lot less indirection added to work around missing ES6 support in IE11
This commit is contained in:
parent
5df045ba46
commit
be05ad6dc7
1 changed files with 15 additions and 7 deletions
|
@ -1,11 +1,19 @@
|
|||
/* eslint-env node */
|
||||
|
||||
const browsers = [
|
||||
'last 2 Chrome versions',
|
||||
'last 2 Firefox versions',
|
||||
'last 2 Safari versions',
|
||||
'last 2 Edge versions'
|
||||
];
|
||||
|
||||
const isCI = !!process.env.CI;
|
||||
const isProduction = process.env.EMBER_ENV === 'production';
|
||||
|
||||
if (isCI || isProduction) {
|
||||
browsers.push('ie 11');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
browsers: [
|
||||
'ie 11',
|
||||
'last 2 Chrome versions',
|
||||
'last 2 Firefox versions',
|
||||
'last 2 Safari versions',
|
||||
'last 2 Edge versions'
|
||||
]
|
||||
browsers
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue