-
-
Notifications
You must be signed in to change notification settings - Fork 773
feat: allow custom ignore patterns for public assets #3883
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
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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