From 4faf2b7730347e5cb8e956c70874409832ba1f21 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 12 Feb 2015 16:00:54 +1100 Subject: [PATCH] fix namespace name --- lib/6to5/transformation/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/transformation/file.js b/lib/6to5/transformation/file.js index 87d6775459..7fe68801e1 100644 --- a/lib/6to5/transformation/file.js +++ b/lib/6to5/transformation/file.js @@ -178,8 +178,8 @@ File.prototype.normalizeOptions = function (opts) { var ensureEnabled = function (key) { var namespace = transform.transformerNamespaces[key]; + if (namespace === "es7") opts.experimental = true; if (namespace === "playground") opts.playground = true; - if (namespace === "experimental") opts.experimental = true; }; each(opts.whitelist, ensureEnabled);