Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-zhukov committed Mar 30, 2022
1 parent 40930b2 commit e9b1de4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mdx/lib/plugin/recma-jsx-rewrite.js
Expand Up @@ -145,6 +145,7 @@ export function recmaJsxRewrite(options = {}) {
const parentNode = parentScope && parentScope.node
if (
!isInScope ||
// If the parent is a _createMdxContent function, it's a top-level component in MDX.
(parentNode &&
parentNode.type === 'FunctionDeclaration' &&
isNamedFunction(parentNode, '_createMdxContent'))
Expand Down

0 comments on commit e9b1de4

Please sign in to comment.