fix update
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-05 07:23:40 -06:00
parent 507d77a576
commit e8b9a190ec
4 changed files with 477 additions and 246 deletions

View File

@@ -4,7 +4,7 @@ import AutoImport from "unplugin-auto-import/rspack"
import Components from "unplugin-vue-components/rspack"
import { NaiveUiResolver } from "unplugin-vue-components/resolvers"
export default defineConfig(({ envMode }) => {
const config: ReturnType<typeof defineConfig> = defineConfig(({ envMode }) => {
const { publicVars, rawPublicVars } = loadEnv({
cwd: process.cwd(),
mode: envMode,
@@ -20,9 +20,20 @@ export default defineConfig(({ envMode }) => {
ws: true,
changeOrigin: true,
}
return {
plugins: [pluginVue()],
tools: {
swc: {
detectSyntax: false,
jsc: {
parser: {
decorators: true,
syntax: "typescript",
tsx: false,
},
},
},
rspack: {
plugins: [
AutoImport({
@@ -96,3 +107,5 @@ export default defineConfig(({ envMode }) => {
},
}
})
export default config