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

HMR does not remove class and style attributes from imported SFC #1305

Closed
damianstasik opened this issue Jun 5, 2020 · 0 comments · Fixed by #1312
Closed

HMR does not remove class and style attributes from imported SFC #1305

damianstasik opened this issue Jun 5, 2020 · 0 comments · Fixed by #1312

Comments

@damianstasik
Copy link

Version

3.0.0-beta.14

Reproduction link

https://codesandbox.io/s/gracious-stonebraker-spz1p?file=/src/App.vue

Steps to reproduce

  1. Create an app with create-vite-app
  2. Create a simple SFC (for example an empty <div> inside <template>)
  3. Import and use it in the App.vue
  4. Add class or/and style attribute to the imported component
  5. Remove it/them
  6. Save the file and check if the attribute(s) were removed by HMR

What is expected?

class and style should be removed

What is actually happening?

class and style are still present

@github-actions github-actions bot locked and limited conversation to collaborators Nov 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant