Core: hotfix paths not being normalized on Windows

This commit is contained in:
Fuma Nama
2025-06-16 21:24:43 +08:00
parent 1a42039d70
commit 7d1ac21961
2 changed files with 12 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-core': patch
---
hotfix paths not being normalized on Windows
+7 -1
View File
@@ -51,7 +51,13 @@ export function loadFiles(
for (const file of files) {
const parsedPath = normalizePath(file.path);
storage.write(parsedPath, buildFile(file));
storage.write(
parsedPath,
buildFile({
...file,
path: parsedPath,
}),
);
}
for (const transformer of transformers) {