chore: add legacy plugin

This commit is contained in:
Johnny
2025-03-10 18:57:48 +08:00
parent 925e97882e
commit ff13e0f353
3 changed files with 1193 additions and 5 deletions

View File

@@ -65,6 +65,7 @@
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-legacy": "^6.0.2",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"code-inspector-plugin": "^0.18.3",
@@ -77,6 +78,7 @@
"postcss": "^8.5.3",
"prettier": "^3.5.2",
"protobufjs": "^7.4.0",
"terser": "^5.39.0",
"typescript": "^5.8.2",
"vite": "^6.2.0"
},

1192
web/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,4 @@
import legacy from "@vitejs/plugin-legacy";
import react from "@vitejs/plugin-react";
import { codeInspectorPlugin } from "code-inspector-plugin";
import { resolve } from "path";
@@ -13,6 +14,9 @@ if (process.env.DEV_PROXY_SERVER && process.env.DEV_PROXY_SERVER.length > 0) {
export default defineConfig({
plugins: [
react(),
legacy({
targets: ["defaults", "not IE 11"],
}),
codeInspectorPlugin({
bundler: "vite",
}),