From 9cf8d05a19aff46ccb403ef6a5af013d54d31d92 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Sun, 11 Jan 2015 12:47:17 -0500 Subject: [PATCH] Add --reactCompat option to cli --- bin/6to5/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/6to5/index.js b/bin/6to5/index.js index 7a51f51e78..a1874033eb 100755 --- a/bin/6to5/index.js +++ b/bin/6to5/index.js @@ -24,6 +24,7 @@ commander.option("-c, --remove-comments", "Remove comments from the compiled cod commander.option("-I, --indent [width]", "Indent width [2]", 2); commander.option("-a, --amd-module-ids", "Insert module id in AMD modules", false); // todo: remove in 3.0.0 commander.option("-m, --module-ids", "Insert module id in modules", false); +commander.option("--reactCompat", "Makes the react transformer produce pre-v0.12 code"); commander.on("--help", function(){ var outKeys = function (title, obj) { @@ -110,6 +111,7 @@ exports.opts = { comments: !commander.removeComments, runtime: commander.runtime, modules: commander.modules, + reactCompat: commander.reactCompat, format: { indent: { style: util.repeat(parseInt(commander.indent))