diff --git a/packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts b/packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts index 450404cfcc5bf..cdf834ba7af02 100644 --- a/packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts +++ b/packages/gatsby-plugin-mdx/src/gatsby-layout-loader.ts @@ -72,11 +72,6 @@ const gatsbyLayoutLoader: LoaderDefinition = async function () { type: `mdxjsEsm` as `text`, value: `export * from "${layoutPath}"`, }) - - tree.children.push({ - type: `mdxjsEsm` as `text`, - value: `export default GatsbyMDXLayout`, - }) const out = toMarkdown(tree, { extensions: [mdxToMarkdown() as Options], })