Commit ff13e0f3 authored by Johnny's avatar Johnny

chore: add legacy plugin

parent 925e9788
......@@ -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"
},
......
This diff is collapsed.
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",
}),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment