From 5196b94fa54c8febe9c73234eefb3b9b2b0cea7f Mon Sep 17 00:00:00 2001 From: Cory Simmons Date: Wed, 30 Aug 2017 00:25:10 -0400 Subject: [PATCH] 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. --- experimental/babel-preset-env/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/experimental/babel-preset-env/README.md b/experimental/babel-preset-env/README.md index b5c01a29e9..2fcc47cdd8 100644 --- a/experimental/babel-preset-env/README.md +++ b/experimental/babel-preset-env/README.md @@ -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)