nksaraf / vinxi

The Full Stack JavaScript SDK
https://vinxi.vercel.app
MIT License
1.89k stars 75 forks source link

Update `@vinxi/plugin-mdx` to support MDX v3 #289

Open PalmDevs opened 4 months ago

PalmDevs commented 4 months ago

MDX v2 which has some trouble running with remark-gfm v3. Upgrading to MDX v3 and remark-gfm v4 fixes this issue, but the plugin currently only supports MDX v2, so that is not possible.

There are other issues with the plugin as well:

  1. Types aren't exported correctly, so I had to do a workaround similar to this by the SolidJS team
  2. It still compiles to CJS which has been marked as deprecated by Vite for quite a while now.
epatters commented 1 week ago

Seconding both issues raised at the end, especially (2). The warning from Vite about CJS is irksome even if it can be ignored (at least for now).