Skip to content

Commit

Permalink
feat: update to ES2023 #32
Browse files Browse the repository at this point in the history
  • Loading branch information
yejimeiming committed Jul 17, 2023
1 parent 647fe26 commit 8dd828c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -133,7 +133,7 @@ async function transformCommonjs({

let ast: AcornNode
try {
ast = parseAst(code, { sourceType: 'module', ecmaVersion: 2020 }) as AcornNode
ast = parseAst(code, { sourceType: 'module', ecmaVersion: 14 }) as AcornNode
} catch (error) {
// ignore as it might not be a JS file, the subsequent plugins will catch the error
return null
Expand Down

0 comments on commit 8dd828c

Please sign in to comment.