Skip to content

Commit 651dac5

Browse files
committed
refactor: move defineClientConfig back to client package
1 parent 69b6a1e commit 651dac5

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { ClientConfig } from '../types/index.js'
2+
3+
/**
4+
* A helper function to help you define vuepress client config file
5+
*/
6+
export const defineClientConfig = (
7+
clientConfig: ClientConfig = {},
8+
): ClientConfig => clientConfig

packages/client/src/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export * from './defineClientConfig.js'
12
export * from './withBase.js'

packages/vuepress/src/client.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
import type { ClientConfig } from '@vuepress/client'
2-
3-
/**
4-
* A helper function to help you define vuepress client config file
5-
*/
6-
export const defineClientConfig = (
7-
clientConfig: ClientConfig = {},
8-
): ClientConfig => clientConfig
9-
101
export * from '@vuepress/client'

0 commit comments

Comments
 (0)