去掉 legacy

This commit is contained in:
2024-10-15 12:54:47 +08:00
parent 9e704a53cf
commit 955c667a90
5 changed files with 109 additions and 1889 deletions

View File

@@ -6,9 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>徐越的判题狗</title>
<link rel="stylesheet" href="/style.css" />
<script>
this.globalThis || (this.globalThis = window)
</script>
<script
async
defer

1986
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -34,11 +34,9 @@
"@shikijs/markdown-it": "^1.22.0",
"@types/canvas-confetti": "^1.6.4",
"@types/node": "^22.7.5",
"@vitejs/plugin-legacy": "^5.4.2",
"@vitejs/plugin-vue": "^5.1.4",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.1.0",
"terser": "^5.34.1",
"typescript": "^5.6.3",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",

1
src/components.d.ts vendored
View File

@@ -56,7 +56,6 @@ declare module 'vue' {
NTabPane: typeof import('naive-ui')['NTabPane']
NTabs: typeof import('naive-ui')['NTabs']
NTag: typeof import('naive-ui')['NTag']
NText: typeof import('naive-ui')['NText']
NTooltip: typeof import('naive-ui')['NTooltip']
NUpload: typeof import('naive-ui')['NUpload']
RouterLink: typeof import('vue-router')['RouterLink']

View File

@@ -1,4 +1,3 @@
import legacy from "@vitejs/plugin-legacy"
import Vue from "@vitejs/plugin-vue"
import Shiki from "@shikijs/markdown-it"
import path from "path"
@@ -23,7 +22,7 @@ export default defineConfig({
manualChunks: {
chart: ["vue-chartjs", "chart.js"],
editor: ["@wangeditor/editor"],
codemirror: [
cm: [
"vue-codemirror",
"codemirror",
"@codemirror/lang-cpp",
@@ -43,8 +42,7 @@ export default defineConfig({
},
},
plugins: [
Vue({include: [/\.vue$/, /\.md$/]}),,
legacy({ targets: ["chrome 66", "not IE 11"] }),
Vue({include: [/\.vue$/, /\.md$/]}),
AutoImport({
imports: [
"vue",