perf(admin): 降低首屏体积并修复 Windows 访问白屏

1) Editor 改 defineAsyncComponent,IEditorConfig 改 import type
2) dev server 绑定 :: 双栈,避免 Windows 下 localhost 走 ::1 超时
3) dev 脚本去掉 POSIX 环境变量前缀,Windows 可直接 pnpm dev
This commit is contained in:
Zhou Weidong authored and trae-solo-agent committed 2026-10-21 13:35:55 +08:00
1 parent 1737f37d82
commit 45507dee8d
4 files changed
+12 -4

No files matched your search

+4 -1
View File
@@ -139,7 +139,10 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
hmr: {
overlay: false
},
host: '0.0.0.0'
// 必须同时监听 IPv6:Windows 上 localhost 先解析成 ::1,
// 只绑 0.0.0.0 会让每次新建连接都等 IPv6 超时(约 2s)再回退到 IPv4,
// 表现为页面白屏很久。'::' 是双栈,IPv4 局域网访问同样可用。
host: '::'
},
optimizeDeps: {
include: [