storybookjs/mdx2-csf

Cannot get JSX output

tomcode45678 opened this issue · 0 comments

Describe the bug
I'm running compile(file, { mdxCompileOptions: { jsx: true, format: 'mdx' } }) where file is a string of a mdx file.

The output I'm getting is React without JSX.

_jsx("br", {}), "\n", _jsx("br", {}), "\n", _jsx("img", {
      src: "https://rojcyk.com/imgs/blog/figma-variants-crash-course/2.gif",
      width: "600",
      alt: ""
})

Expected behavior
JSX output