From db0dc75f030b6451977e3437a61c738f74860948 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 6 Sep 2016 10:34:56 -0400 Subject: [PATCH] parse as ES7 --- src/Module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module.js b/src/Module.js index d6a418f..205b38b 100644 --- a/src/Module.js +++ b/src/Module.js @@ -13,7 +13,7 @@ import ModuleScope from './ast/scopes/ModuleScope.js'; function tryParse ( code, comments, acornOptions, id ) { try { return parse( code, assign({ - ecmaVersion: 6, + ecmaVersion: 7, sourceType: 'module', onComment: ( block, text, start, end ) => comments.push({ block, text, start, end }), preserveParens: true