Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/slidev/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type MarkdownIt from 'markdown-it'
import type { Connect, GeneralImportGlobOptions } from 'vite'
import { relative } from 'node:path'
import { fileURLToPath } from 'node:url'
import { slash } from '@antfu/utils'
import { createJiti } from 'jiti'
import YAML from 'yaml'

Expand Down Expand Up @@ -105,7 +106,7 @@ export function makeAbsoluteImportGlob(
options: Partial<GeneralImportGlobOptions> = {},
) {
// Vite's import.meta.glob only supports relative paths
const relativeGlobs = globs.map(glob => `./${relative(userRoot, glob)}`)
const relativeGlobs = globs.map(glob => `./${slash(relative(userRoot, glob))}`)
const opts: GeneralImportGlobOptions = {
eager: true,
exhaustive: true,
Expand Down
Loading