test02/node_modules/@vuepress/plugin-theme-data/lib/node/themeDataPlugin.js
罗佳鸿 6aa1ebe342
Some checks are pending
部署文档 / deploy-gh-pages (push) Waiting to run
first commit
2024-08-13 10:11:19 +08:00

9 lines
384 B
JavaScript

import { getDirname, path } from 'vuepress/utils';
import { prepareThemeData } from './prepareThemeData.js';
const __dirname = getDirname(import.meta.url);
export const themeDataPlugin = ({ themeData, }) => ({
name: '@vuepress/plugin-theme-data',
clientConfigFile: path.resolve(__dirname, '../client/config.js'),
onPrepared: (app) => prepareThemeData(app, themeData),
});