vite-plugin-vue
vite-plugin-vue copied to clipboard
Vite Vue Plugins
### Description Ensure that the `setup` section is available in Vuejs Devtools when building with `__VUE_PROD_DEVTOOLS__: true`. ### Additional context Original fix. Possible regression since then? https://github.com/vitejs/vite/pull/4984 Another report with...
### Description This PR fixes HMR not working as expected when Vue script and template are in separate files (as described in #8) by allowing to disable template caching in...
### Describe the bug I have a problem with HMR with Vue. When I modify my external script, HMR reload the .vue but stay in an old state. ```html TestHmr...
### Description FIXED: #301 Some vite plugins like `unocss:vue-scoped` needs to rewrite `hmrContext.read` to inject their special code into SFC when hmr. `vite-plugin-vue` uses `fs.readFileSync` to get the raw code,...
### Related plugins - [X] [plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue) - [ ] [plugin-vue-jsx](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx) ### Describe the bug I am developing a Vite plugin ([vite-plugin-vue-css-module](https://github.com/HJinPeng/vite-plugin-vue-css-module/pull/18)) that slightly modifies Vue templates before they are actually...
### Description The child components of custom element are compiled without suffix ### Additional context https://github.com/vuejs/core/pull/7942 https://github.com/vuejs/rfcs/discussions/596 --- ### What is the purpose of this pull request? - [ ]...
### Description Fixes https://github.com/vitejs/vite-plugin-vue/issues/376 "The Bun implementation of Function.toString differs from node, as described in https://github.com/oven-sh/bun/issues/9543. This causes the serialization of ssrRegisterHelper to output a incorrect string." This change exports...
### Related plugins - [ ] [plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue) - [X] [plugin-vue-jsx](https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx) ### Describe the bug The Bun implementation of Function.toString differs from node, as described in https://github.com/oven-sh/bun/issues/9543. This causes the serialization...
### Describe the bug 我使用 defineProps(),会导致当前组件热更新失败 ### Reproduction https://stackblitz.com/edit/vitejs-vite-rckp9s?file=package.json,src%2FApp.vue,src%2Ftype.ts&terminal=dev ### Steps to reproduce 当 defineProps 使用泛型的时候,你在当前组件的任何操作都会导致热更新失败,必须的重启项目,去掉泛型一切都正常 ### System Info ```shell "dependencies": { "vue": "^3.4.21", "ant-design-vue": "^4.1.2" }, "devDependencies": { "@vitejs/plugin-vue":...
### Description ``` Ts Import {{ foo }} import { foo } from './TsImportFile.js' const Bar = () => ( Bar ) ``` The purpose of this component is to...