S
SolidJS•2y ago
siduck

Saving md to jsx files in a folder with vitejs & solid-jsx

hi, i have many md files in a folder and i want vite to convert all of them to jsx and store them in a folder, is this possible?
5 Replies
siduck
siduck•2y ago
@brendan_csel new query 🙂
Brendan
Brendan•2y ago
I don't know anything specific to solid-jsx sorry.
I think it (and solid-mdx) are more about converting mdx to components "on-the-fly" as part of your app - rather than persisting anything to the file system. Hopefully someone else might have a suggestion. Or perhaps ask on the solid-jsx repo https://github.com/high1/solid-jsx.
high1
high1•2y ago
You can emit pure JSX files with @md9742x-js, you would just need a separate build step for this. You don't need solid-jsx or solid-mdx for that. The purpose of those two is to make mdx files work with solid-js .
siduck
siduck•2y ago
cool!
high1
high1•2y ago
jsx: true will just give you jsx which you need to compile with solid-js You will need solid-mdx for that, I think