Skip to content
This repository was archived by the owner on May 11, 2018. It is now read-only.

Commit 4c69766

Browse files
authored
Fixed "node: current" example
`parseFloat` is not applied anymore to "node: current" logic: The parseFloat was wrong, as `parseFloat('6.3.2')` will parse as 6.3, but `parseFloat('6.10.2')` will output 6.1 that is not correct. Ref: https://github.com/babel/babel-preset-env/blob/master/src/targets-parser.js#L73
1 parent 51d9e6d commit 4c69766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ The [data](https://github.com/babel/babel-preset-env/blob/master/data/plugins.js
112112

113113
`number | string | "current" | true`
114114

115-
If you want to compile against the current node version, you can specify `"node": true` or `"node": "current"`, which would be the same as `"node": parseFloat(process.versions.node)`.
115+
If you want to compile against the current node version, you can specify `"node": true` or `"node": "current"`, which would be the same as `"node": process.versions.node`.
116116

117117
### `targets.browsers`
118118

0 commit comments

Comments
 (0)