-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: configure Babel with Browserslist
- Loading branch information
1 parent
2b2c173
commit f99f70b
Showing
5 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
> 0.1% in GB and not dead | ||
last 6 Chrome versions | ||
last 6 Firefox versions | ||
last 6 Edge versions | ||
last 2 Samsung versions | ||
Firefox ESR | ||
Safari >= 11 | ||
iOS >= 11 | ||
IE 11 | ||
|
||
[node] | ||
node 22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-env'] | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
// Apply bug fixes to avoid transforms | ||
bugfixes: true, | ||
|
||
// Apply smaller "loose" transforms for browsers | ||
loose: true | ||
} | ||
] | ||
], | ||
env: { | ||
test: { | ||
browserslistEnv: 'node' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters