From b94b4b335bc20748de3620ef430bab21fd2b35ee Mon Sep 17 00:00:00 2001 From: Alberto Leal Date: Wed, 17 Dec 2014 04:18:53 -0500 Subject: [PATCH 1/3] Clarify usage of 6to5 in node with harmony flag. --- doc/usage.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/usage.md b/doc/usage.md index 23119e367b..550706a5a4 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -184,6 +184,8 @@ require("6to5/register")({ }); ``` +**NOTE:** Be aware that if you use node.js with the `--harmony` flag, 6to5 will not automatically check and disable features that are natively supported. You will need to use the `blacklist` option. + #### Options ```javascript From 1d91a758b46c50b05674a35f414a3ac18c9bdb27 Mon Sep 17 00:00:00 2001 From: Alberto Leal Date: Wed, 17 Dec 2014 08:19:47 -0500 Subject: [PATCH 2/3] Rephrasing --- doc/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/usage.md b/doc/usage.md index 550706a5a4..6e49ec51fe 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -184,7 +184,7 @@ require("6to5/register")({ }); ``` -**NOTE:** Be aware that if you use node.js with the `--harmony` flag, 6to5 will not automatically check and disable features that are natively supported. You will need to use the `blacklist` option. +**NOTE:** Be aware that if you use node.js with the `--harmony` flag, 6to5 will transform code regardless of whether or not a feature is natively supported. If a feature is natively supported, you may want 6to5 to skip transformation for this feature via the `blacklist` option. #### Options From 98e9a45f630e0acd01d6a5965141eb9fa4b03fd5 Mon Sep 17 00:00:00 2001 From: Alberto Leal Date: Wed, 17 Dec 2014 08:23:02 -0500 Subject: [PATCH 3/3] Rephrasing again. Clarified by @sebmck on gitter. --- doc/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/usage.md b/doc/usage.md index 6e49ec51fe..19116d3ac7 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -184,7 +184,7 @@ require("6to5/register")({ }); ``` -**NOTE:** Be aware that if you use node.js with the `--harmony` flag, 6to5 will transform code regardless of whether or not a feature is natively supported. If a feature is natively supported, you may want 6to5 to skip transformation for this feature via the `blacklist` option. +**NOTE:** Using 6to5-node or `require("6to5/register")`, 6to5 will check what features are available in the current environment and blacklists them if they're supported. #### Options