I have developed a small project using Rsbuild and PrimeReact. I've noticed that both dev and build are generating the CSS @layer in the wrong order, resulting in incorrect CSS styles.
As a comparison, PrimeReact officially provides a Vite Demo and when I run it, the CSS @layer order is correct and the CSS styles are correct.
I am not sure if this is a problem with Rspack, Rsbuild, other tools, or other settings. Feel free to let me know. Thanks! 🙏
Version
Details
I have developed a small project using Rsbuild and PrimeReact. I've noticed that both dev and build are generating the CSS
@layer
in the wrong order, resulting in incorrect CSS styles.As a comparison, PrimeReact officially provides a Vite Demo and when I run it, the CSS
@layer
order is correct and the CSS styles are correct.I am not sure if this is a problem with Rspack, Rsbuild, other tools, or other settings. Feel free to let me know. Thanks! 🙏
Reproduce link
https://github.com/ModyQyW/trimmean-now
Reproduce Steps
git clone git@github.com:ModyQyW/trimmean-now.git
pnpm install
pnpm dev