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);