chore: 升级依赖与工程配置

This commit is contained in:
2026-08-05 17:10:14 +08:00
parent bd55e0a061
commit a9ce5563b1
9 changed files with 853 additions and 639 deletions

View File

@@ -1,9 +1,15 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { visualizer } from 'rollup-plugin-visualizer';
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
react(),
...(process.env.BUNDLE_VISUALIZE
? [visualizer({ filename: 'dist/stats.json', template: 'raw-data', gzipSize: true })]
: []),
],
server: {
port: 3002,
proxy: {