Skip to content

Commit

Permalink
fix: Fix JSX missing component descriptors
Browse files Browse the repository at this point in the history
Fixes #282
  • Loading branch information
petyosi committed Jan 8, 2024
1 parent 0b49d74 commit ad4b9e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/jsx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export const jsxPlugin = realmPlugin<{
*/
jsxComponentDescriptors: JsxComponentDescriptor[]
}>({
init: (realm) => {
init: (realm, params) => {
realm.pubIn({
// import
[jsxIsAvailable$]: true,
Expand All @@ -178,7 +178,8 @@ export const jsxPlugin = realmPlugin<{
// export
[addLexicalNode$]: LexicalJsxNode,
[addExportVisitor$]: LexicalJsxVisitor,
[addToMarkdownExtension$]: mdxToMarkdown()
[addToMarkdownExtension$]: mdxToMarkdown(),
[jsxComponentDescriptors$]: params?.jsxComponentDescriptors || []
})
},

Expand Down

0 comments on commit ad4b9e7

Please sign in to comment.