-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update babel config to transpile nullish-coalescing-operator (#1034)
- Loading branch information
1 parent
144b8db
commit 627e732
Showing
2 changed files
with
41 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,33 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"browsers": [ | ||
">1%", | ||
"last 2 chrome versions", | ||
"last 2 edge versions", | ||
"last 2 firefox versions", | ||
"last 2 safari versions", | ||
"not dead", | ||
"not ie <= 11", | ||
"not op_mini all", | ||
"not android <= 4.4", | ||
"not samsung <= 4" | ||
], | ||
"node": "16" | ||
}, | ||
"useBuiltIns": false, | ||
"modules": false | ||
} | ||
], | ||
"@babel/preset-react", | ||
"@babel/preset-typescript", | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-nullish-coalescing-operator" | ||
] | ||
} |
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