diff --git a/theme/src/node/theme.ts b/theme/src/node/theme.ts index 09d10813..2e1bbbf7 100644 --- a/theme/src/node/theme.ts +++ b/theme/src/node/theme.ts @@ -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), ]), ),