mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: upgrade vitepress
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
import '@docsearch/css'
|
||||
import { getCurrentInstance, onMounted, watch } from 'vue'
|
||||
import { useRoute, useRouter, withBase } from 'vitepress'
|
||||
//@ts-expect-error
|
||||
import docsearch from '@docsearch/js'
|
||||
import { isClient } from '@vueuse/core'
|
||||
import { useLang } from '../../composables/lang'
|
||||
import searchLocale from '../../../i18n/component/search.json'
|
||||
|
||||
import type { DocSearchHit } from '@docsearch/react/dist/esm/types'
|
||||
interface DocSearchHit {
|
||||
url: string
|
||||
[key: string]: unknown
|
||||
}
|
||||
|
||||
const props = defineProps<{
|
||||
options: any
|
||||
|
||||
@@ -56,7 +56,7 @@ div {
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('xs') {
|
||||
@include respond-to('sm') {
|
||||
width: 196px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ $breakpoints: (
|
||||
) !default;
|
||||
|
||||
@mixin respond-to($breakpoint) {
|
||||
@if #{map.has-key($breakpoints, $breakpoint)} {
|
||||
@if map.has-key($breakpoints, $breakpoint) {
|
||||
@media screen and (min-width: #{map.get($breakpoints, $breakpoint)}) {
|
||||
@content;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"crowdin-credentials": "tsx .vitepress/build/crowdin-credentials.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docsearch/js": "^3.1.0",
|
||||
"@docsearch/js": "^4.5.3",
|
||||
"@element-plus/icons-vue": "^2.3.2",
|
||||
"@element-plus/metadata": "workspace:*",
|
||||
"@vue/shared": "catalog:",
|
||||
@@ -32,12 +32,13 @@
|
||||
"consola": "^2.15.3",
|
||||
"tinyglobby": "^0.2.15",
|
||||
"markdown-it-container": "^4.0.0",
|
||||
"oxc-minify": "^0.116.0",
|
||||
"unocss": "^66.5.6",
|
||||
"unplugin-icons": "^0.14.15",
|
||||
"unplugin-vue-components": "^0.27.4",
|
||||
"vite-plugin-inspect": "^0.8.7",
|
||||
"vite-plugin-inspect": "^11.3.3",
|
||||
"vite-plugin-mkcert": "^1.17.6",
|
||||
"vitepress": "^1.2.3",
|
||||
"vitepress": "2.0.0-alpha.16",
|
||||
"vitepress-plugin-group-icons": "^1.7.1",
|
||||
"vue": "catalog:"
|
||||
}
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
"@vitejs/plugin-vue": "catalog:",
|
||||
"@vitejs/plugin-vue-jsx": "catalog:",
|
||||
"unplugin-vue-components": "0.27.4",
|
||||
"vite": "^5.4.10",
|
||||
"vite-plugin-inspect": "^0.8.7",
|
||||
"vite-plugin-inspect": "^11.3.3",
|
||||
"vite-plugin-mkcert": "^1.17.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ export default defineConfig(async ({ mode }) => {
|
||||
},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
target: 'chrome64',
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
@@ -70,8 +71,5 @@ export default defineConfig(async ({ mode }) => {
|
||||
optimizeDeps: {
|
||||
include: ['vue', '@vue/shared', ...dependencies, ...optimizeDeps],
|
||||
},
|
||||
esbuild: {
|
||||
target: 'chrome64',
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
1998
pnpm-lock.yaml
generated
1998
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -9,8 +9,8 @@ catalog:
|
||||
'@element-plus/icons-vue': ^2.3.2
|
||||
'@floating-ui/dom': ^1.0.1
|
||||
'@popperjs/core': npm:@sxzz/popperjs-es@^2.11.7
|
||||
'@vitejs/plugin-vue': ^5.1.4
|
||||
'@vitejs/plugin-vue-jsx': ^4.0.1
|
||||
'@vitejs/plugin-vue': ^6.0.4
|
||||
'@vitejs/plugin-vue-jsx': ^5.1.4
|
||||
'@vue/server-renderer': ^3.5.22
|
||||
'@vue/shared': ^3.5.22
|
||||
'@vue/test-utils': ^2.4.6
|
||||
@@ -26,6 +26,7 @@ onlyBuiltDependencies:
|
||||
- esbuild
|
||||
- fsevents
|
||||
- puppeteer
|
||||
- rolldown
|
||||
- vue-demi
|
||||
|
||||
overrides:
|
||||
|
||||
Reference in New Issue
Block a user