fix(theme): alias path posix in windows

This commit is contained in:
pengzhanbo 2024-06-17 01:10:29 +08:00
parent 618ea13715
commit 404a158791

View File

@ -1,5 +1,5 @@
import type { Page, Theme } from 'vuepress/core'
import { fs } from 'vuepress/utils'
import { fs, path } from 'vuepress/utils'
import { isPlainObject } from '@vuepress/helper'
import type { PlumeThemeOptions, PlumeThemePageData } from '../shared/index.js'
import { getPlugins } from './plugins/index.js'
@ -52,7 +52,7 @@ export function plumeTheme({
)
.filter(file => file.endsWith('.vue'))
.map(file => [
`@theme/${file}`,
path.join('@theme', file),
resolve('client/components', file),
]),
),