feat: allow custom ignore patterns for public assets#3883
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughAdds an optional per-asset Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/build/assets.ts(3 hunks)src/types/config.ts(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: tests-rolldown (ubuntu-latest)
- GitHub Check: tests-rolldown (windows-latest)
🔇 Additional comments (2)
src/build/assets.ts (2)
21-21: LGTM! Correctly passes per-asset ignore patterns.The calls now pass
asset.ignoretogetIncludePatterns, enabling per-asset ignore configuration. The default parameter ingetIncludePatternsensures backward compatibility whenasset.ignoreis undefined.Also applies to: 42-42
67-86: LGTM! Logic correctly handles all ignore pattern scenarios.The function signature and implementation properly handle:
false: Disables ignore patterns via(false || [])→[]string[]: Uses the provided patternsundefined: Falls back tonitro.options.ignorevia default parameter
commit: |
🔗 Linked issue
❓ Type of change
📚 Description
spotted in nuxt/nuxt#33005, this allows custom ignore patterns for public assets dirs.
we would want all files emitted from a build to be included in the client assets, for example,
📝 Checklist