mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-07 15:13:51 +08:00
- 支持全部工作台标签与 AI 对话在多显示器中原生独立展示 - 修复拖拽指针捕获,恢复关闭、右键菜单和跨窗口释放识别 - 拆分子窗启动入口并按需加载语言与工作台内容 - 内容与 Monaco 完成可见绘制后再提交迁移,消除白屏和加载闪烁 - 加固结果编辑、宿主同步及关闭、超时和焦点竞态
35 lines
954 B
JavaScript
35 lines
954 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
setupFiles: ['./src/test/setupI18nCatalogs.ts'],
|
|
},
|
|
optimizeDeps: {
|
|
// Pre-bundle startup locale modules before Wails starts proxying the WebView.
|
|
include: [
|
|
'antd/locale/de_DE',
|
|
'antd/locale/en_US',
|
|
'antd/locale/ja_JP',
|
|
'antd/locale/ru_RU',
|
|
'antd/locale/zh_CN',
|
|
'antd/locale/zh_TW',
|
|
'dayjs/locale/de',
|
|
'dayjs/locale/ja',
|
|
'dayjs/locale/ru',
|
|
'dayjs/locale/zh-cn',
|
|
'dayjs/locale/zh-tw',
|
|
],
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: 5173,
|
|
strictPort: true,
|
|
},
|
|
build: {
|
|
outDir: 'dist', // Standard Wails output directory
|
|
emptyOutDir: true,
|
|
}
|
|
});
|