Skip to content

Commit

Permalink
fix(gatsby-plugin-mdx): Use latest for acorn's ecmaVersion (#38126)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed May 30, 2023
1 parent 2a32c30 commit 5020b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const gatsbyLayoutLoader: LoaderDefinition = async function (

try {
const tree = acorn.Parser.extend(JSX()).parse(source, {
ecmaVersion: 2020,
ecmaVersion: `latest`,
sourceType: `module`,
locations: true,
})
Expand Down

0 comments on commit 5020b74

Please sign in to comment.