Files
YGChatCS/vite.config.js
duanshuwen 14defcc5b7 feat(recharge): add full virtual recharge flow for aigc credits
- Replace legacy recharge API endpoints with new dedicated VirtualRechargeApi with sensitive request logging
- Implement pending order tracking, automatic payment reconciliation, and recovery for interrupted payments
- Overhaul recharge component logic to support both pre-defined package and custom amount recharge
- Fix currency price formatting to consistently display 2 decimal places for all monetary values
- Remove unused xiaoqi-avatar asset and related component imports
- Simplify Vite build asset naming configuration
- Switch application to test development mode
2026-07-22 16:17:16 +08:00

29 lines
557 B
JavaScript

import { defineConfig } from "vite";
import path from "path";
import uni from "@dcloudio/vite-plugin-uni";
import md5 from "md5-hash";
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
"@": path.join(__dirname, "./src"),
},
},
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
silenceDeprecations: ["legacy-js-api"],
},
},
},
plugins: [uni()],
build: {
commonjsOptions: {
transformMixedEsModules: true,
},
rollupOptions: {},
},
});