Closed luobingxun closed 2 months ago
demo warehouse address: https://github.com/miss-money/vite-plugin-mdx-demo-test/tree/master/demo/vue
This sounds like a bug in @vitejs/plugin-vue-jsx, why report it here not there? MDX compiles the jsx away already. That plugin doesn't see jsx?
Initial checklist
Affected packages and versions
3.0.1
Link to runnable example
No response
Steps to reproduce
Expected behavior
The MDXProvider can customize the components in the mdx file
Actual behavior
Cannot be customized, the components provided by the MDXProvider are invalid, and a warning is reported in the browser console inject() can only be used inside setup() or functional components.
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response