Skip to content

Commit

Permalink
Add back IE11 temporarily to our targets
Browse files Browse the repository at this point in the history
- In recent Browserslist version the "not dead" query removes IE11.
This breaks our ES5 check on the legacy bundle.
Add it back temporarily, until we tackle the major Babel/targets etc
revamp.
  • Loading branch information
pascalduez committed Jul 29, 2022
1 parent 2a0f4dd commit e6a5ee2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change log

## [Unreleased]
### Fixed
* Temporarily add back IE11 to our targets.
In recent Browserslist versions the not dead query removes IE11 from our targets. This breaks our ES5 check on the legacy bundle.

## 5.8.1 - 2022-06-01
### Fixed
Expand Down
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@
* the class properties plugin.
* This is to avoid the `undefined` properties issue with old Flow props
* syntax: `class A { props: Props }`.
*
* 3. Temporary, see https://github.com/Gandi/babel-preset-gandi/pull/42
*/
module.exports = (context, options = {}) => {
let envOpts = Object.assign(
{
targets: {
browsers: ['last 2 versions', '> 1%', 'Firefox ESR', 'not dead'],
browsers: [
'last 2 versions',
'> 1%',
'not dead',
'Firefox ESR',
'IE 11', // 3
],
},
bugfixes: options.targets && options.targets.esmodules === true,
},
Expand Down

0 comments on commit e6a5ee2

Please sign in to comment.