#Vite + MDX + Index of files

1 messages · Page 1 of 1 (latest)

gilded widget
#

Hello! I'm trying the new unstable vite for remix after checking out the youtube video, but I'm stuck in this part: how to make a list of MDX files? I'm trying to make something like a blog index, so in a file /routes/blog.tsx, in the loader function, I'm trying to grab all mdx files but unsuccessful. Could someone point me the right direction? Thank you.

wooden harness
gilded widget
wooden harness
#

I'm 🇲🇽, not 🇧🇷 , but good guess!

As for "anything is possible", pretty much! Most plugins, like MDX, are doing transforms to source code files and then handing those off to other plugins. This works great with Vite!

gilded widget
#

I guessed from the name not the last name 🙂 but either would do for brazilians so... hard guess haha