diff --git a/package.json b/package.json
index 03f1f919b..85d986a27 100644
--- a/package.json
+++ b/package.json
@@ -26,15 +26,5 @@
"nano-staged": "^0.8.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2"
- },
- "pnpm": {
- "peerDependencyRules": {
- "ignoreMissing": [
- "@algolia/client-search",
- "@types/react",
- "react",
- "react-dom"
- ]
- }
}
}
diff --git a/packages/vant-cli/changelog.md b/packages/vant-cli/changelog.md
index 08999539a..4eb6aaf51 100644
--- a/packages/vant-cli/changelog.md
+++ b/packages/vant-cli/changelog.md
@@ -1,5 +1,12 @@
# 更新日志
+## v6.0.0 [unreleased]
+
+- vite: 由 v3 升级至 v4
+- @vitejs/plugin-vue: 由 v3 升级至 v4
+- @vitejs/plugin-vue-jsx: 由 v2 升级至 v3
+- 移除 `site.searchConfig` 配置项
+
## v5.1.0
`2022-11-05`
diff --git a/packages/vant-cli/docs/config.md b/packages/vant-cli/docs/config.md
index b20e414f8..100e09ea8 100644
--- a/packages/vant-cli/docs/config.md
+++ b/packages/vant-cli/docs/config.md
@@ -16,7 +16,6 @@
- [site.nav](#sitenav)
- [site.versions](#siteversions)
- [site.baiduAnalytics](#sitebaiduanalytics)
- - [site.searchConfig](#sitesearchconfig)
- [site.hideSimulator](#sitehidesimulator)
- [site.simulator.url](#sitesimulatorurl)
- [site.htmlMeta](#sitehtmlmeta)
@@ -355,13 +354,6 @@ module.exports = {
};
```
-### site.searchConfig
-
-- Type: `object`
-- Default: `undefined`
-
-Documentation site search config. Based on [docsearch](https://docsearch.algolia.com/docs/behavior) of algolia.
-
### site.hideSimulator
- Type: `boolean`
diff --git a/packages/vant-cli/docs/config.zh-CN.md b/packages/vant-cli/docs/config.zh-CN.md
index 26d11b680..4eb0199ff 100644
--- a/packages/vant-cli/docs/config.zh-CN.md
+++ b/packages/vant-cli/docs/config.zh-CN.md
@@ -16,7 +16,6 @@
- [site.nav](#sitenav)
- [site.versions](#siteversions)
- [site.baiduAnalytics](#sitebaiduanalytics)
- - [site.searchConfig](#sitesearchconfig)
- [site.hideSimulator](#sitehidesimulator)
- [site.simulator.url](#sitesimulatorurl)
- [site.htmlMeta](#sitehtmlmeta)
@@ -357,15 +356,6 @@ module.exports = {
};
```
-### site.searchConfig
-
-- Type: `object`
-- Default: `undefined`
-
-文档网站的搜索配置,基于 algolia 提供的 docsearch 服务实现。
-
-配置内容参见 [docsearch](https://docsearch.algolia.com/docs/behavior)。
-
### site.hideSimulator
- Type: `boolean`
diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json
index d2f73dfd3..6b0efca7c 100644
--- a/packages/vant-cli/package.json
+++ b/packages/vant-cli/package.json
@@ -43,15 +43,11 @@
"@types/fs-extra": "^9.0.13",
"@types/less": "^3.0.3",
"@types/markdown-it": "^12.2.3",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
"vue": "^3.2.45"
},
"dependencies": {
"@babel/core": "^7.18.13",
"@babel/preset-typescript": "^7.18.6",
- "@docsearch/css": "^3.2.1",
- "@docsearch/js": "^3.2.1",
"@types/jest": "^29.1.1",
"@vant/eslint-config": "^3.5.0",
"@vant/touch-emulator": "^1.4.0",
diff --git a/packages/vant-cli/site/desktop/components/Header.vue b/packages/vant-cli/site/desktop/components/Header.vue
index e8ca3f655..dff09df2a 100644
--- a/packages/vant-cli/site/desktop/components/Header.vue
+++ b/packages/vant-cli/site/desktop/components/Header.vue
@@ -64,12 +64,6 @@
{{ langLabel }}
-
-
@@ -77,17 +71,12 @@
-
-
diff --git a/packages/vant/vant.config.mjs b/packages/vant/vant.config.mjs
index 0f008afa7..0235ea82a 100644
--- a/packages/vant/vant.config.mjs
+++ b/packages/vant/vant.config.mjs
@@ -32,9 +32,6 @@ export default {
baiduAnalytics: {
seed: 'af5d41bc4e446e76665dbe3ec18d55c3',
},
- htmlMeta: {
- 'docsearch:version': 'v4',
- },
headHtml: `