-
Notifications
You must be signed in to change notification settings - Fork 177
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
[Bug]: unocss rspack plugin hmr not work #4615
Comments
I think this is a issue with the unocss implementation. According to the unocss documentation, you have to disable the cache to make HMR work, but this will increase the HMR time: export default defineConfig({
tools: {
rspack: {
cache: false,
},
},
}); Related documentation: |
Maybe using First, HMR in the unocss postcss plugin works well and quickly. However, the unocss rspack plugin is not so good. Second, if you use the unocss rspack plugin, Related: |
Hello, thank you so much for reporting the issues you encountered when using the relevant plugins in Rsbuild. Your analysis is really clear - cut! The differences in HMR and the problems regarding directive support can significantly affect the development experience. The related links you provided are also of great value. We'll look into them carefully and troubleshoot and fix these issues as soon as possible. |
Version
Details
根据官网, 配置rsbuild和unocs环境,pnpm dev启动开发服务器, 修改class,发现页面无法热更新,必须刷新页面后才能看到样式修改效果。(使用postcss模式hmr正常工作)
Reproduce link
https://github.com/me9rez/rsbuild-unocss-hmr-issue
Reproduce Steps
复现步骤:
App.vue
中的class, 发现hmr功能无效The text was updated successfully, but these errors were encountered: