Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #149 from rollup/gh-132
Browse files Browse the repository at this point in the history
use ecmaVersion: 8, not 6
  • Loading branch information
Rich-Harris committed Dec 14, 2016
2 parents 0693d1f + efff8e9 commit e6d1f85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function deconflict ( scope, globals, identifier ) {
function tryParse ( code, id ) {
try {
return acorn.parse( code, {
ecmaVersion: 6,
ecmaVersion: 8,
sourceType: 'module'
});
} catch ( err ) {
Expand Down
3 changes: 3 additions & 0 deletions test/form/async-function/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = async function () {
// TODO
};
6 changes: 6 additions & 0 deletions test/form/async-function/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var input = async function () {
// TODO
};

export default input;
export { input as __moduleExports };

0 comments on commit e6d1f85

Please sign in to comment.