Skip to content

Commit 5020b74

Browse files
authored
fix(gatsby-plugin-mdx): Use latest for acorn's ecmaVersion (#38126)
1 parent 2a32c30 commit 5020b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const gatsbyLayoutLoader: LoaderDefinition = async function (
5959

6060
try {
6161
const tree = acorn.Parser.extend(JSX()).parse(source, {
62-
ecmaVersion: 2020,
62+
ecmaVersion: `latest`,
6363
sourceType: `module`,
6464
locations: true,
6565
})

0 commit comments

Comments
 (0)