Closed goisaki closed 3 months ago
Hi @goisaki
Let's add .md
!
I personally support providing the option, as I think some people would prefer to use files such as
.vue
or.svelte
. (And I can implement it!)
Ideally, we should make it so that users can add the extension by themselves by specifying them as an option. But, we can't do that because the Glob Import which is used in the src/server/server.ts
or src/server/with-default.ts
is not support variables: https://vitejs.dev/guide/features#glob-import-caveats
So, at this time, we should make it support only .md
. Can you create the PR?
Hi @yusukebe I didn't know that. Thanks. I will send you a PR right away.
What is the feature you are proposing?
When I’m creating a blog site that parses
.md
as route, the extension was not omitted and converted like:/app/routes/blog/post-1.md
->/blog/post-1.md
I would like to see an option to omit paths and recognize files as routes for extensions other the currently supported
.ts
,tsx
, and.mdx
. Or I would like to hardcode.md
as such. I personally support providing the option, as I think some people would prefer to use files such as.vue
or.svelte
. (And I can implement it!)Plugins that make it possible
.md
-vite-plugin-markdown
.md
&.mdx
-@mdx-js/rollup
.vue
-@vitejs/plugin-vue
.svelte
-@sveltejs/vite-plugin-svelte
Codes to be affected
Related discussion