-
-
Notifications
You must be signed in to change notification settings - Fork 153
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 is not working when including component from some npm package #58
Labels
duplicate
This issue or pull request already exists
Comments
7 tasks
Adding import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
optimizeDeps: {
exclude: ['vue']
}
}) Because |
sapphi-red
added
duplicate
This issue or pull request already exists
and removed
pending triage
labels
Jan 5, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I use
vue-material-design-icons
on vue-cli project without any issues. I try to move to vite and all is working except this package, can't figure why.I've try to include exactly the same component on Local (
Local.vue
) and the HMR is working fine.Reproduction
https://stackblitz.com/edit/vitejs-vite-ryvwef?file=src%2Fcomponents%2FHelloWorld.vue&terminal=dev
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: