From a425136680cb1bf3dcfea29d2a9d4a84df99c970 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 12 Feb 2015 16:36:17 +1100 Subject: [PATCH] allow loose = true as an alias for loose = "all" --- 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 7fe68801e1..5b33ee1933 100644 --- a/lib/6to5/transformation/file.js +++ b/lib/6to5/transformation/file.js @@ -136,7 +136,7 @@ File.prototype.normalizeOptions = function (opts) { opts.optional = util.arrayify(opts.optional); opts.loose = util.arrayify(opts.loose); - if (includes(opts.loose, "all")) { + if (includes(opts.loose, "all") || includes(opts.loose, true)) { opts.loose = Object.keys(transform.transformers); }