Skip to content

Commit bb6c07b

Browse files
committed
Use node: 'current' as target for babel-preset-env
This replaces the hand-rolled node version setup with a new feature that was introduced in [email protected] https://github.com/babel/babel-preset-env/blob/v0.0.7/CHANGELOG.md
1 parent 41562bb commit bb6c07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/babel-preset-react-app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ if (env === 'test') {
6868
// ES features necessary for user's Node version
6969
[require('babel-preset-env').default, {
7070
targets: {
71-
node: parseFloat(process.versions.node),
71+
node: 'current',
7272
},
7373
}],
7474
// JSX, Flow

0 commit comments

Comments
 (0)