fix modules loose mode using modules instead of es6.modules

This commit is contained in:
Sebastian McKenzie
2015-01-29 10:42:03 +11:00
parent b33f05bd3d
commit 7f7ee41315
2 changed files with 6 additions and 1 deletions

View File

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