baidu-digital-human/vite.config.ts
libingxiang afdcae1e8e
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m55s
ci
2026-06-24 09:44:24 +08:00

32 lines
633 B
TypeScript

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import legacy from "@vitejs/plugin-legacy";
import path from "path";
export default defineConfig({
base: "/xg-digital-human-app",
plugins: [
vue(),
legacy({
targets: [
"> 0.5%",
"last 2 versions",
"Firefox ESR",
"not dead",
"iOS >= 12",
"Android >= 5",
],
additionalLegacyPolyfills: ["regenerator-runtime/runtime"],
modernPolyfills: true,
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
globals: true,
},
});