Skip to content

Commit

Permalink
update acorn
Browse files Browse the repository at this point in the history
  • Loading branch information
lega911 committed Jun 11, 2022
1 parent 838fc08 commit ba5921d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"update": "npm install -D https://github.com/malinajs/malinajs.git"
},
"devDependencies": {
"acorn": "^8.4.1",
"acorn": "^8.7.1",
"astring": "^1.8.1",
"cjs2es": "^1.1.0",
"codejar": "^3.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/bundler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ async function treeshake(code){

function pretify(code){
console.log(code);
let ast = acorn.parse(code, {sourceType: 'module', ecmaVersion:2020});
let ast = acorn.parse(code, {sourceType: 'module', ecmaVersion: 'latest'});
return astring.generate(ast);
}

0 comments on commit ba5921d

Please sign in to comment.