Closed hastebrot closed 3 years ago
Servus,
great work to make this vite plugin framework-independent
Yep, that's the goal. Right now it only works with React but it should be easy to make it work with Vue & co. (I've an idea how to do this.)
About MDX v2; I've an idea how to allow the user to use vite-plugin-mdx
with any MDX version. Would you be up for a PR?
MDX is now a peer depedency; you should now be able to use @brillout/vite-plugin-mdx
with MDX v1 as well as MDX v2.
Very great work to make this vite plugin framework-independent!
I've tested this with MDX v2 (currently unreleased) by changing the dependencies in this plugin and my project. It works great and fixes some issues I have when using MDX within a react component within MDX.
Example document: