chore: add legacy plugin
This commit is contained in:
parent
925e97882e
commit
ff13e0f353
3 changed files with 1193 additions and 5 deletions
|
|
@ -65,6 +65,7 @@
|
||||||
"@types/uuid": "^10.0.0",
|
"@types/uuid": "^10.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||||
"@typescript-eslint/parser": "^7.18.0",
|
"@typescript-eslint/parser": "^7.18.0",
|
||||||
|
"@vitejs/plugin-legacy": "^6.0.2",
|
||||||
"@vitejs/plugin-react": "^4.3.4",
|
"@vitejs/plugin-react": "^4.3.4",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"code-inspector-plugin": "^0.18.3",
|
"code-inspector-plugin": "^0.18.3",
|
||||||
|
|
@ -77,6 +78,7 @@
|
||||||
"postcss": "^8.5.3",
|
"postcss": "^8.5.3",
|
||||||
"prettier": "^3.5.2",
|
"prettier": "^3.5.2",
|
||||||
"protobufjs": "^7.4.0",
|
"protobufjs": "^7.4.0",
|
||||||
|
"terser": "^5.39.0",
|
||||||
"typescript": "^5.8.2",
|
"typescript": "^5.8.2",
|
||||||
"vite": "^6.2.0"
|
"vite": "^6.2.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
1192
web/pnpm-lock.yaml
1192
web/pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
|
@ -1,3 +1,4 @@
|
||||||
|
import legacy from "@vitejs/plugin-legacy";
|
||||||
import react from "@vitejs/plugin-react";
|
import react from "@vitejs/plugin-react";
|
||||||
import { codeInspectorPlugin } from "code-inspector-plugin";
|
import { codeInspectorPlugin } from "code-inspector-plugin";
|
||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
|
|
@ -13,6 +14,9 @@ if (process.env.DEV_PROXY_SERVER && process.env.DEV_PROXY_SERVER.length > 0) {
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
|
legacy({
|
||||||
|
targets: ["defaults", "not IE 11"],
|
||||||
|
}),
|
||||||
codeInspectorPlugin({
|
codeInspectorPlugin({
|
||||||
bundler: "vite",
|
bundler: "vite",
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue