Skip to content

Commit 009ccc0

Browse files
committed
feat: add Vite legacy plugin support for improved browser compatibility
1 parent 4e0e404 commit 009ccc0

File tree

5 files changed

+1565
-259
lines changed

5 files changed

+1565
-259
lines changed

.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ VITE_BASE_PUBLIC_PATH="/"
44
# Use gzip to compress resources.
55
VITE_BUILD_GZIP="true"
66

7+
# Use the legacy build.
8+
VITE_BUILD_LEGACY="false"
9+
10+
711
# Open the vite dev tool.
812
VITE_DEV_TOOL="true"
913

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@types/lodash-es": "^4.17.12",
4545
"@types/node": "^22.15.2",
4646
"@types/nprogress": "^0.2.3",
47+
"@vitejs/plugin-legacy": "^6.1.1",
4748
"@vitejs/plugin-vue": "^5.2.3",
4849
"@vitejs/plugin-vue-jsx": "^4.1.2",
4950
"@vue/test-utils": "^2.4.6",
@@ -54,6 +55,7 @@
5455
"npm-run-all2": "^7.0.2",
5556
"rimraf": "^6.0.1",
5657
"simple-git-hooks": "^2.13.0",
58+
"terser": "^5.39.0",
5759
"typescript": "^5.8.3",
5860
"unocss": "66.1.0-beta.12",
5961
"unplugin-auto-import": "^19.1.2",

0 commit comments

Comments
 (0)