From 7f7ee41315cb2b224da31ab5c071115c0728da18 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 29 Jan 2015 10:42:03 +1100 Subject: [PATCH] fix modules loose mode using `modules` instead of `es6.modules` --- CHANGELOG.md | 5 +++++ lib/6to5/file.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cb5a1c2da..9a20cfc90d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ _Note: Gaps between patch versions are faulty/broken releases._ +## 3.0.13 + + * **Bug Fix** + * Fix modules loose mode using `modules` instead of `es6.modules`. + ## 3.0.12 * **Internal** diff --git a/lib/6to5/file.js b/lib/6to5/file.js index 1edb6f1045..06f423065c 100644 --- a/lib/6to5/file.js +++ b/lib/6to5/file.js @@ -312,7 +312,7 @@ File.prototype.parse = function (code) { var opts = this.opts; - opts.allowImportExportEverywhere = this.isLoose("modules"); + opts.allowImportExportEverywhere = this.isLoose("es6.modules"); return util.parse(opts, code, function (tree) { self.transform(tree);