Files
EasyFlow/easyflow-ui-admin/app/vite.config.mts
陈子默 7e7c236c2a fix: 修复管理端前端 lint 与构建问题
- 收敛 easyflow-ui-admin 的 lint、格式和类型问题

- 修正 demo 页面与管理端前端构建失败点

- 验证 pnpm lint 与 pnpm build 均已通过
2026-04-05 21:39:13 +08:00

39 lines
972 B
TypeScript

import { defineConfig } from '@easyflow/vite-config';
import ElementPlus from 'unplugin-element-plus/vite';
export default defineConfig(async () => {
return {
application: {},
vite: {
resolve: {
alias: {
// @vueuse/motion expects tslib default export during dev pre-bundling
// and breaks when Vite resolves to ESM-only modules/index.js.
tslib: 'tslib/tslib.js',
},
},
plugins: [
ElementPlus({
format: 'esm',
}),
],
server: {
proxy: {
'/flow/api': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/flow/, ''),
target: 'http://127.0.0.1:8111',
ws: true,
},
'/flow/userCenter': {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/flow/, ''),
target: 'http://127.0.0.1:8111',
},
},
},
},
};
});