Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 7, 2024
1 parent 3e8972c commit cae6598
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/search/plugin-slimsearch/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { getDirname, path } from 'vuepress/utils'

const __dirname = getDirname(import.meta.url)

export const PLUGIN_NAME = '@vuepress/plugin-slimsearch'

export const logger = new Logger(PLUGIN_NAME)

export const CLIENT_FOLDER = ensureEndingSlash(
path.resolve(__dirname, '../client/'),
)

export const WORKER_FILE = path.resolve(__dirname, '../worker/index.js')

export const PLUGIN_NAME = '@vuepress/plugin-slimsearch'

export const logger = new Logger(PLUGIN_NAME)

export const getLocaleChunkName = (locale: string): string =>
locale.replace(/\//g, '') || 'root'

Expand Down

0 comments on commit cae6598

Please sign in to comment.