Skip to content

Custom loader react router config loader error using webpack #3754

Closed Answered by 9aoy
jincheny asked this question in Q&A
Discussion options

You must be logged in to vote

The addRules(...) method will prepend rules to Rspack rule list. In your scenario, I think you should use config.module.rules.push(...)

https://rsbuild.dev/config/tools/rspack#addrules

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jincheny
Comment options

Answer selected by chenjiahan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants