README: Add string type as valid node target value (#337) [skip ci]

This commit is contained in:
Artem Yavorsky
2017-05-24 14:48:53 +03:00
committed by Henry Zhu
parent eaf8d4589a
commit 9062995324

View File

@@ -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)`.