We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
latest
ecmaVersion
1 parent 2a32c30 commit 5020b74Copy full SHA for 5020b74
packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts
@@ -59,7 +59,7 @@ const gatsbyLayoutLoader: LoaderDefinition = async function (
59
60
try {
61
const tree = acorn.Parser.extend(JSX()).parse(source, {
62
- ecmaVersion: 2020,
+ ecmaVersion: `latest`,
63
sourceType: `module`,
64
locations: true,
65
})
0 commit comments