docs: update import statements for TanStack Router Vite plugin#6575
Conversation
📝 WalkthroughWalkthroughDocumentation across three how-to guides updated to reflect the Vite plugin API rename from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 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 |
|
View your CI Pipeline Execution ↗ for commit d66c723
☁️ Nx Cloud last updated this comment at |
Updates the React Router documentation examples to use the current TanStack Router Vite plugin import (tanstackRouter from @tanstack/router-plugin/vite) and updates plugin usage in sample vite.config.ts / vitest.config.ts snippets accordingly.
SSR setup docs: replaced TanStackRouterVite example usage with tanstackRouter(...) in Vite config snippets.
File-based routing testing docs: updated vitest.config.ts example to use tanstackRouter(...) and aligned the “ensure this runs before tests” snippet.
Environment variables docs: corrected the Vite plugin import and ensured examples consistently reference @tanstack/router-plugin/vite.
Scope / Impact
Documentation-only change (no runtime code changes).
Improves correctness and consistency across multiple React Router “how-to” guides.
Testing
Not applicable (docs update only).
Summary by CodeRabbit