This commit is contained in:
2025-12-03 12:08:44 +08:00
parent d88cfc818b
commit 6e2cd453f8
2 changed files with 11 additions and 3 deletions
+5
View File
@@ -71,4 +71,9 @@ export default defineConfig({
// 预构建这些依赖,避免首次加载时出现重新构建
include: ['react-pdf', 'pdfjs-dist', 'dayjs', '@remix-run/node', 'react-dom', 'axios', 'dayjs/plugin/utc', '@remix-run/react', 'react-router-dom', 'jszip', 'ahooks', 'antd', 'immer', '@ant-design/icons', 'react-markdown', 'remark-math', 'remark-breaks', 'rehype-katex', 'remark-gfm'],
},
// SSR 配置 - 排除只能在客户端运行的包
// ssr: {
// noExternal: [],
// external: ['@monaco-editor/react', 'monaco-editor']
// },
});