Skip to content
Discussion options

You must be logged in to vote

I'm excited to hear that you're building a UnoCSS plugin for Rsbuild! I've received feedback from users about some unresolved issues with @unocss/webpack. I believe a dedicated plugin for Rsbuild would provide a much better experience.

Regarding the addDependency issue you encountered, I did a quick investigation and found that addDependency is working correctly. The key issue is that Rspack doesn't watch files in node_modules by default. This can be changed by configuring the watchOptions.ignored option.

I think rsbuild-plugin-virtual-module should set the watchOptions.ignored option by default to enable watching of virtual modules in node_modules/.rsbuild-virtual-module. I'll talk to @S…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@chenjiahan
Comment options

@a-type
Comment options

@a-type
Comment options

@a-type
Comment options

@chenjiahan
Comment options

Answer selected by a-type
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