Commit ff13e0f3 authored by Johnny's avatar Johnny

chore: add legacy plugin

parent 925e9788
...@@ -65,6 +65,7 @@ ...@@ -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 @@ ...@@ -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"
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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) { ...@@ -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",
}), }),
......
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