Browse Source

parse as ES7

rewrite
Rich Harris 8 years ago
parent
commit
db0dc75f03
  1. 2
      src/Module.js

2
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

Loading…
Cancel
Save