prev-cli 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/theme/entry.tsx +2 -2
package/package.json
CHANGED
package/src/theme/entry.tsx
CHANGED
|
@@ -54,8 +54,8 @@ function convertToPageTree(items: any[]): PageTree.Root {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
// Dynamic imports for MDX pages
|
|
58
|
-
const pageModules = import.meta.glob('/**/*.{md,mdx}', { eager: true })
|
|
57
|
+
// Dynamic imports for MDX pages (include dot directories for --include flag)
|
|
58
|
+
const pageModules = import.meta.glob(['/**/*.{md,mdx}', '/.*/**/*.{md,mdx}'], { eager: true })
|
|
59
59
|
|
|
60
60
|
function getPageComponent(file: string): React.ComponentType | null {
|
|
61
61
|
const mod = pageModules[`/${file}`] as { default: React.ComponentType } | undefined
|