Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: align community workspace dependencies and markdown prebundling (#23636)

Mochaa01f830cd732
diff --git a/apps/cli/pnpm-workspace.yaml b/apps/cli/pnpm-workspace.yaml
index 75b93c090c2..5ece7db436f 100644
--- a/apps/cli/pnpm-workspace.yaml
+++ b/apps/cli/pnpm-workspace.yaml
@@ -43,3 +43,7 @@ allowBuilds:
overrides:
'@types/react': 19.2.13
antd: 6.3.5
+ # The standalone CLI install relinks shared packages. Match the root workspace pins.
+ react: 19.2.7
+ react-dom: 19.2.7
+ 'zod@^4': 4.6.5
diff --git a/plugins/vite/sharedRendererConfig.test.ts b/plugins/vite/sharedRendererConfig.test.ts
index 0eb819c7df2..fc98c7b1c52 100644
--- a/plugins/vite/sharedRendererConfig.test.ts
+++ b/plugins/vite/sharedRendererConfig.test.ts
@@ -73,6 +73,8 @@ describe('lobe-dev-editor-provider', () => {
describe('sharedOptimizeDeps', () => {
it('parses CJK emphasis after pre-bundling alongside the root Markdown serializer', async () => {
+ expect(sharedOptimizeDeps.include).toContain('remark-cjk-friendly');
+
const root = path.resolve(import.meta.dirname, '../..');
const cacheDir = await mkdtemp(path.join(root, 'node_modules/.vite-markdown-test-'));
diff --git a/plugins/vite/sharedRendererConfig.ts b/plugins/vite/sharedRendererConfig.ts
index eb6777e078a..d5b08460bf7 100644
--- a/plugins/vite/sharedRendererConfig.ts
+++ b/plugins/vite/sharedRendererConfig.ts
@@ -587,6 +587,7 @@ export const sharedOptimizeDeps = {
'react-dom/client',
'react-router',
'react-router/dom',
+ 'remark-cjk-friendly',
'@lobehub/ui',
'@lobehub/ui > @emotion/react',
'zustand',
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 621c06adab6..ee9daedb6e0 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -63,7 +63,7 @@ allowBuilds:
workerd: true
overrides:
- '@lobehub/ui': ^6.16.1
+ '@lobehub/ui': ^6.18.0
'@lobehub/icons': ^6.0.0
# Exact: an editor release can move its lexical version, and the root pins
# lexical; lift both together.