fix(docs): 修复 vite.config 插件类型 TS2321 堆栈过深 - #21
Conversation
vueJsx 内置的 @vitejs/plugin-vue 把 vite peer 浮动到 vite-plus-core@0.1.21, 与 defineConfig 期望的 0.1.20 Plugin 类型族冲突。将 vueJsx() 归一到 vite 导出的 PluginOption 即可消除,其余插件保持类型推断。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR fixes a TypeScript type mismatch in the Vite configuration for the docs package by adding a ChangesVite vueJsx plugin type resolution
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
vueJsx 内置的 @vitejs/plugin-vue 把 vite peer 浮动到 vite-plus-core@0.1.21, 与 defineConfig 期望的 0.1.20 Plugin 类型族冲突。将 vueJsx() 归一到 vite 导出的 PluginOption 即可消除,其余插件保持类型推断。
Summary by CodeRabbit