-
-
Notifications
You must be signed in to change notification settings - Fork 44
fix: resource path resolution format #518
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
base: main
Are you sure you want to change the base?
fix: resource path resolution format #518
Conversation
WalkthroughUpdated globbing calls to request absolute paths by adding the absolute: true option in resource loading and test utilities, and slightly reordered related imports. No exported APIs changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ 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 |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/unplugin-vue-i18n/test/utils.ts (1)
7-7
: Import reordering (stylistic).The
tinyglobby
import was moved to follow the established import order. No functional impact.packages/unplugin-vue-i18n/src/core/resource.ts (1)
16-16
: Import reordering (stylistic).The
tinyglobby
import was moved to follow the established import order. No functional impact.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/unplugin-vue-i18n/src/core/resource.ts
(2 hunks)packages/unplugin-vue-i18n/test/utils.ts
(2 hunks)
🔇 Additional comments (2)
packages/unplugin-vue-i18n/test/utils.ts (1)
58-59
: LGTM! Fixes the path resolution issue.Adding
absolute: true
ensures thatignoreIds
contains absolute paths, which correctly matches againstlog.id
(line 83) from the build system. This aligns with the PR objective to fix failing tests after the tinyglobby migration.Based on learnings.
packages/unplugin-vue-i18n/src/core/resource.ts (1)
63-67
: LGTM! Correctly resolves resource paths as absolute.Adding
absolute: true
ensures thatresourcePaths
contains absolute paths, which is essential for proper comparison withid
(line 246) andquery.issuerPath
(line 248) from the build system. This directly addresses the failing tests mentioned in the PR objectives.Based on learnings.
Description
The switch to
tinyglobby
(#511) changed the resolved paths to be relative rather than absolute, which is why the tests are failing.Linked Issues
Additional context
Summary by CodeRabbit
Bug Fixes
Tests