-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
refactor: remove obsolete shortPath property
#33384
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
|
|
WalkthroughThe changes remove the shortPath property from the Component interface and from runtime construction/usage. scanComponents no longer accepts a srcDir parameter and no longer computes or returns shortPath. The AddComponentOptions type was loosened to no longer exclude shortPath, while normalizeComponent no longer sets a shortPath value. Multiple tests and callers (including the Nuxt module) were updated to drop shortPath usage and to call scanComponents with the new single-argument signature. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{test,spec}.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧬 Code graph analysis (1)packages/nuxt/test/scan-components.test.ts (1)
🔇 Additional comments (1)
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 |
@nuxt/kit
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #33384 will not alter performanceComparing Summary
Footnotes |
| prefetch: false, | ||
| preload: false, |
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.
these are also unused (currently)
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.
It seems also be used by webpack builder.
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.
you are quite right
| // Apply defaults | ||
| const component: Component = { | ||
| export: opts.export || 'default', | ||
| chunkName: 'components/' + kebabCase(opts.name), |
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.
this is only used by webpack builder - support could likely be added in vite
This reverts commit df559ad.
🔗 Linked issue
📚 Description
It seems that this property has become obsolete.