-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(router-plugin): normalize file paths for Windows compatibility with rspack/webpack #6333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…th rspack/webpack The route generator stores file paths with forward slashes but rspack and webpack on Windows pass native paths with backslashes to transform handlers. This caused TSR_ROUTES_BY_ID_MAP lookups to fail, preventing autoCodeSplitting from working on Windows with rspack.The route generator stores file paths with forward slashes, but rspack and webpack on Windows pass native paths with backslashes to transform handlers. This caused TSR_ROUTES_BY_ID_MAP lookups to fail, preventing autoCodeSplitting from working on Windows with rspack.
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis change introduces path normalization across the router plugin to fix an Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
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 29e5080
☁️ Nx Cloud last updated this comment at |
The route generator stores file paths with forward slashes but rspack and webpack on Windows pass native paths with backslashes to transform handlers.
This caused
TSR_ROUTES_BY_ID_MAPlookups to fail, preventingautoCodeSplittingfrom working on Windows with rspack. The route generator stores file paths with forward slashes, but rspack and webpack on Windows pass native paths with backslashes to transform handlers.This caused
TSR_ROUTES_BY_ID_MAPlookups to fail, preventing autoCodeSplitting from working on Windows with rspack.Closes #6253
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.