兼容旧浏览器

This commit is contained in:
xmdhs 2023-10-11 22:15:22 +08:00
parent 36c6e1fe4e
commit 48aabb74f4
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95
4 changed files with 1437 additions and 28 deletions

View File

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />

View File

@ -32,10 +32,12 @@
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"@vitejs/plugin-legacy": "^4.1.1",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"terser": "^5.21.0",
"typescript": "^5.0.2",
"vite": "^4.4.5"
}

1455
frontend/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { join } from "path";
import legacy from '@vitejs/plugin-legacy'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
react(),
legacy()
],
resolve: {
alias: {
'@': join(__dirname, "src")