Skip to content

Commit

Permalink
Babel preset: increase browsers coverage to 98%
Browse files Browse the repository at this point in the history
This should fix the new issues with optional chaining and Storybook.
  • Loading branch information
mrtnzlml committed Dec 20, 2023
1 parent 4fe0bee commit 994b6fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ exports[`emits correct config for target 'js' and environment 'undefined' and re
"debug": false,
"modules": "commonjs",
"targets": {
"browsers": "cover 90%, not dead, maintained node versions"
"browsers": "cover 98%, not dead, maintained node versions"
},
"bugfixes": true
}
Expand Down Expand Up @@ -433,7 +433,7 @@ exports[`emits correct config for target 'js' and environment 'undefined' and re
"debug": false,
"modules": "commonjs",
"targets": {
"browsers": "cover 90%, not dead, maintained node versions"
"browsers": "cover 98%, not dead, maintained node versions"
},
"bugfixes": true
}
Expand Down Expand Up @@ -719,7 +719,7 @@ exports[`emits correct config for target 'js-esm' and environment 'undefined' an
"debug": false,
"modules": false,
"targets": {
"browsers": "cover 90%, not dead, maintained node versions"
"browsers": "cover 98%, not dead, maintained node versions"
},
"bugfixes": true
}
Expand Down Expand Up @@ -775,7 +775,7 @@ exports[`emits correct config for target 'js-esm' and environment 'undefined' an
"debug": false,
"modules": false,
"targets": {
"browsers": "cover 90%, not dead, maintained node versions"
"browsers": "cover 98%, not dead, maintained node versions"
},
"bugfixes": true
}
Expand Down
6 changes: 3 additions & 3 deletions src/babel-preset-adeira/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ module.exports = (
const options /*: InternalOptions */ = {
target: externalOptions.target ?? 'js',
environments: externalOptions.environments ?? {
// npx browserslist 'cover 90%, not dead, maintained node versions'
// https://browsersl.ist/#q=cover+90%25%2C+not+dead%2C+maintained+node+versions
browsers: 'cover 90%, not dead, maintained node versions',
// npx browserslist 'cover 98%, not dead, maintained node versions'
// https://browsersl.ist/#q=cover+98%25%2C+not+dead%2C+maintained+node+versions
browsers: 'cover 98%, not dead, maintained node versions',
},
debug: externalOptions.debug ?? false,
reactRuntime: externalOptions.reactRuntime ?? 'automatic',
Expand Down

0 comments on commit 994b6fb

Please sign in to comment.