Skip to content

Commit a6189f5

Browse files
renovate[bot]xrgzs
andauthored
chore(deps): update dependency vite to v8 (#417)
* chore(deps): update dependency vite to v8 * chore: add pnpm workspace configuration and update TypeScript settings - Created a new pnpm-workspace.yaml file to allow builds for core-js. - Changed module resolution in tsconfig.json from 'node' to 'bundler'. - Added path mapping for @hope-ui/solid in tsconfig.json. Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> * fix: remove extra space in dynamic public path configuration Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> * fix(deps): update highlight.js to npm Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> * fix: add plugin to restore data-src for legacy polyfill compatibility Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> --------- Signed-off-by: MadDogOwner <xiaoran@xrgzs.top> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: MadDogOwner <xiaoran@xrgzs.top>
1 parent 7cb636a commit a6189f5

7 files changed

Lines changed: 1025 additions & 9035 deletions

File tree

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"build:lite": "cross-env VITE_LITE=true vite build",
3232
"serve": "vite preview",
3333
"prepare": "husky",
34+
"lint": "tsc -p tsconfig.json --noEmit",
3435
"format": "prettier --ignore-path .gitignore -w \"src/**/*.{js,ts,json,css,tsx,jsx}\""
3536
},
3637
"license": "MIT",
@@ -44,7 +45,7 @@
4445
"@types/qrcode": "^1.5.6",
4546
"@types/sha256": "^0.2.2",
4647
"@types/streamsaver": "^2.0.5",
47-
"@vitejs/plugin-legacy": "^6.1.1",
48+
"@vitejs/plugin-legacy": "^8.0.0",
4849
"cross-env": "^10.1.0",
4950
"husky": "^9.1.7",
5051
"lint-staged": "^16.3.2",
@@ -56,10 +57,10 @@
5657
"terser": "^5.46.0",
5758
"typescript": "^5.9.3",
5859
"unified": "^11.0.5",
59-
"vite": "^6.4.1",
60-
"vite-plugin-dynamic-base": "^1.2.0",
61-
"vite-plugin-solid": "^2.11.10",
62-
"vite-plugin-static-copy": "^3.2.0"
60+
"vite": "^8.0.0",
61+
"vite-plugin-dynamic-base": "^1.3.0",
62+
"vite-plugin-solid": "^2.11.11",
63+
"vite-plugin-static-copy": "^3.3.0"
6364
},
6465
"dependencies": {
6566
"@egjs/view360": "4.0.0-beta.7",
@@ -88,6 +89,7 @@
8889
"docx-preview": "^0.3.7",
8990
"handlebars": "^4.7.8",
9091
"hash-wasm": "^4.12.0",
92+
"highlight.js": "^11.11.1",
9193
"hls.js": "^1.6.15",
9294
"ini": "^6.0.0",
9395
"just-once": "^2.2.0",

pnpm-lock.yaml

Lines changed: 984 additions & 1066 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
allowBuilds:
2+
core-js: true

src/components/Markdown.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ import { useScrollListener } from "~/pages/home/toolbar/BackTop.jsx"
1616
import { getMainColor, me } from "~/store"
1717
import { api, notify, pathDir, pathJoin, pathResolve } from "~/utils"
1818
import { isMobile } from "~/utils/compatibility.js"
19+
import hljs from "highlight.js"
1920
import { EncodingSelect } from "."
20-
// @ts-ignore
21-
import { hljs } from "./highlight.js"
2221
import "./markdown.css"
2322

2423
type TocItem = { indent: number; text: string; tagName: string; key: string }

0 commit comments

Comments
 (0)