From c210d6455786cab28a7ada5a74302dcdb4ef5cdc Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 18 Jan 2015 12:13:08 +1100 Subject: [PATCH] add loose all option --- lib/6to5/file.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/6to5/file.js b/lib/6to5/file.js index 68cf3ce5e5..926cf0e427 100644 --- a/lib/6to5/file.js +++ b/lib/6to5/file.js @@ -78,6 +78,10 @@ File.normaliseOptions = function (opts) { opts.optional = util.arrayify(opts.optional); opts.loose = util.arrayify(opts.loose); + if (_.contains(opts.loose, "all")) { + opts.loose = Object.keys(transform.transformers); + } + // todo: remove in 3.0.0 _.each({ fastForOf: "forOf",