Add Node usage (#398) [skip ci]
I can never remember the syntax and end up coming here to copy/paste this snippet all the time. I assume other people want to as well, or at least make it clear for newbs that this can be used with Node without them having to scroll.
This commit is contained in:
@@ -18,6 +18,18 @@ npm install babel-preset-env --save-dev
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"presets": [
|
||||
["env", {
|
||||
"targets": {
|
||||
"node": "current"
|
||||
}
|
||||
}]
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Check out the many options (especially `useBuiltIns` to polyfill less)!
|
||||
|
||||
- [How it Works](#how-it-works)
|
||||
|
||||
Reference in New Issue
Block a user