Skip to content
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

利用unplugin-auto-import引入组件,在修改文件热更新后进行重载导致样式丢失 #205

Closed
pudon opened this issue Jun 14, 2022 · 1 comment · Fixed by #213
Labels
bug Something isn't working

Comments

@pudon
Copy link

pudon commented Jun 14, 2022

Element Plus version

2.2.5

OS/Browsers version

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

unplugin-auto-import version

0.8.7

Reproduction Link

https://github.com/Pudon/vue3-demo

Steps to reproduce

  1. npm run dev
  2. 修改一点代码-热更新
  3. 浏览器点击重载
  4. 再点击显示消息-样式丢失
@pudon
Copy link
Author

pudon commented Jun 14, 2022

image

正常是有引入css

hmr update 后 浏览器重载后

image

少了自动引入css

也反馈到了element plus: #8250

@antfu antfu added the bug Something isn't working label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants