README: Add string type as valid node target value (#337) [skip ci]
This commit is contained in:
committed by
Henry Zhu
parent
eaf8d4589a
commit
9062995324
@@ -110,7 +110,7 @@ The [data](https://github.com/babel/babel-preset-env/blob/master/data/plugins.js
|
||||
|
||||
### `targets.node`
|
||||
|
||||
`number | "current" | true`
|
||||
`number | string | "current" | true`
|
||||
|
||||
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)`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user