Private
Public Access
1
0

重构:CodeMirror 架构优化

核心优化:
- 新增统一导出避免多实例问题
- 语言加载器从动态改为静态导入
- 使用 Compartment 实现主题/语言动态切换

依赖清理:
- 移除废弃的 @codemirror/highlight
- 移除不再使用的 @codemirror/legacy-modes

组件优化:
- CodeEditor 添加内容更新防抖
- 改进亮色主题样式
- 移除不必要的编辑器重建逻辑

构建配置:
- 简化 Vite manualChunks 配置
- 优化依赖预加载列表

文档清理:
- 删除过期的代码审查文档
- 更新版本号 0.3.0 → 0.3.2
This commit is contained in:
2026-02-06 11:32:27 +08:00
parent 9eb39fbb8f
commit 0229cab550
30 changed files with 592 additions and 3971 deletions

View File

@@ -1,5 +1,23 @@
# 更新日志
## [0.3.2] - 2026-02-05
### 重构 🔧
- **CodeMirror 架构优化** - 统一导出避免多实例问题
- **语言加载器优化** - 从动态 import 改为静态导入,提升稳定性
- **动态主题切换** - 使用 Compartment 实现无损切换
### 优化 🚀
- **编辑器性能** - 添加内容更新防抖,减少不必要的渲染
- **亮色主题** - 改进代码编辑器亮色模式样式
- **构建配置** - 简化 Vite 配置,优化打包效率
### 依赖清理 🧹
- 移除废弃的 `@codemirror/highlight`
- 移除不再使用的 `@codemirror/legacy-modes`
---
## [0.3.0] - 2026-02-04
### 新增 ✨