We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8704e commit 67b40b1Copy full SHA for 67b40b1
1 file changed
packages/slidev/node/utils.ts
@@ -3,6 +3,7 @@ import type MarkdownIt from 'markdown-it'
3
import type { Connect, GeneralImportGlobOptions } from 'vite'
4
import { relative } from 'node:path'
5
import { fileURLToPath } from 'node:url'
6
+import { slash } from '@antfu/utils'
7
import { createJiti } from 'jiti'
8
import YAML from 'yaml'
9
@@ -105,7 +106,7 @@ export function makeAbsoluteImportGlob(
105
106
options: Partial<GeneralImportGlobOptions> = {},
107
) {
108
// Vite's import.meta.glob only supports relative paths
- const relativeGlobs = globs.map(glob => `./${relative(userRoot, glob)}`)
109
+ const relativeGlobs = globs.map(glob => `./${slash(relative(userRoot, glob))}`)
110
const opts: GeneralImportGlobOptions = {
111
eager: true,
112
exhaustive: true,
0 commit comments