Skip to content

Commit

Permalink
Merge pull request #42 from Gandi/hotfix/browserslist-ie11tig
Browse files Browse the repository at this point in the history
Temporarily add back IE11 to our targets
  • Loading branch information
pascalduez committed Aug 1, 2022
2 parents 20d6040 + e6a5ee2 commit 0ecf8f5
Show file tree
Hide file tree
Showing 4 changed files with 8,984 additions and 240 deletions.
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 0ecf8f5

Please sign in to comment.