Skip to content

Conversation

@henryqdineen
Copy link
Contributor

Summary

  type RuleSetUse =
    | RuleSetUseItem[]
    | RuleSetUseItem
    | ((ctx: RawFuncUseCtx) => RuleSetUseItem[]);

When use is used as a function it should return RuleSetUseItem[] (an array), not a single RuleSetUseItem. My understanding, at least with webpack is that each item in the array is expected to have an ident set but even webpack does not document that well.

Thanks!

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for rspack ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit de6a843
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6940ff7c6f55f60008158175
😎 Deploy Preview https://deploy-preview-12466--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the release: document release: document related release(mr only) label Dec 16, 2025
Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@chenjiahan chenjiahan merged commit 726679b into web-infra-dev:main Dec 16, 2025
29 checks passed
@CPunisher CPunisher mentioned this pull request Dec 17, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: document release: document related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants