import type { Plugin } from "@vuepress/core" ; import { path } from "@vuepress/utils" ; import type { GiscusOptions } from "../shared" ; export * from "../shared" ; const giscusPlugin = ( options , app ) => { return { name : "vuepress-plugin-giscus" , define : { __GISCUS_OPTIONS__ : options , __SITE_LOCALES__ : app . siteData . locales } , clientAppEnhanceFiles : path . resolve ( __dirname , "../client/clientAppEnhance.js" ) } ; } ; export default giscusPlugin ;