fix(types): add vite as optional peer dependency#2712
Conversation
In strict package managers like pnpm with hoist=false, the vite package is not resolvable from vue-router's package directory, causing type errors such as "Cannot find module 'vite'". Adding vite as an optional peerDependency ensures the types are correctly resolved in monorepos. Closes vuejs#2711
✅ Deploy Preview for vue-router canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesVite Peer Dependency
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 unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2712 +/- ##
==========================================
- Coverage 86.17% 86.14% -0.04%
==========================================
Files 91 91
Lines 10202 10239 +37
Branches 2371 2379 +8
==========================================
+ Hits 8792 8820 +28
- Misses 1399 1408 +9
Partials 11 11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
In strict package managers like pnpm with hoist=false, the vite package is not resolvable from vue-router's package directory, causing type errors such as "Cannot find module 'vite'". Adding vite as an optional peerDependency ensures the types are correctly resolved in monorepos.
Closes #2711
Summary by CodeRabbit