fix: validate user options without default values#3654
Conversation
WalkthroughThe code now merges Nuxt layer inline module options into the i18n user options using the Changes
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)src/prepare/options.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (4)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
commit: |
🔗 Linked issue
📚 Description
Resolves #3653
The options warnings are not logged since the options object is already merged with the default module options. This change manually merges all user module options (inline + keyed) so that we can check if an option has been left unset or if it is purposefully set to something (not
undefined). This way we can log warnings for deprecated and problematic configurations that would otherwise require a breaking change to resolve.Summary by CodeRabbit