File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type MarkdownIt from 'markdown-it'
33import type { Connect , GeneralImportGlobOptions } from 'vite'
44import { relative } from 'node:path'
55import { fileURLToPath } from 'node:url'
6+ import { slash } from '@antfu/utils'
67import { createJiti } from 'jiti'
78import YAML from 'yaml'
89
@@ -105,7 +106,7 @@ export function makeAbsoluteImportGlob(
105106 options : Partial < GeneralImportGlobOptions > = { } ,
106107) {
107108 // Vite's import.meta.glob only supports relative paths
108- const relativeGlobs = globs . map ( glob => `./${ relative ( userRoot , glob ) } ` )
109+ const relativeGlobs = globs . map ( glob => `./${ slash ( relative ( userRoot , glob ) ) } ` )
109110 const opts : GeneralImportGlobOptions = {
110111 eager : true ,
111112 exhaustive : true ,
You can’t perform that action at this time.
0 commit comments