MDX: Temporary workaround for vite:json plugin conflicts

This commit is contained in:
Fuma Nama
2025-11-11 20:08:15 +08:00
parent 304204a384
commit 30b1b11aa2
3 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-mdx': patch
---
Temporary workaround for `vite:json` plugin conflicts
@@ -0,0 +1,3 @@
{
"pages": ["index", "..."]
}
+1 -1
View File
@@ -52,7 +52,7 @@ export default async function mdx(
const metaLoader = toVite(
createMetaLoader(configLoader, {
// vite has built-in plugin for JSON files
json: 'js',
json: 'json',
}),
);