### 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 Props are not updated in the build files when they are imported from another file when using vite build with --watch. The problematic component is the Button, the other Components (Card & Foo) are working correctly. ### Reproduction https://stackblitz.com/edit/vitejs-vite-k4f9th7e?file=src%2Fcomponents%2FButton%2Ftypes.ts ### Steps to reproduce 1. Wait until npm packages are installed 2. Run `npm run start` 3. Look into `dist/test-components.js` every prop is build correctly. 4. Change a prop in /src/components/Button/types.ts -> Vite triggers a rebuild 5. Look into `test-components.js` -> Button props have not been updated ### System Info ```shell System: OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish) CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor Memory: 26.92 GB / 31.31 GB Container: Yes Shell: 5.1.16 - /bin/bash Binaries: Node: 22.14.0 - /run/user/1000/fnm_multishells/984_1743758725581/bin/node npm: 10.9.2 - /run/user/1000/fnm_multishells/984_1743758725581/bin/npm npmPackages: @vitejs/plugin-vue: 5.2.3 => 5.2.3 vite: 6.2.3 => 6.2.3 ``` ### Used Package Manager npm ### Logs _No response_ ### Validations - [x] Follow our [Code of Conduct](https://github.com/vitejs/vite/blob/main/CODE_OF_CONDUCT.md) - [x] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md). - [x] Read the [docs](https://vitejs.dev/guide). - [x] Check that there isn't [already an issue](https://github.com/vitejs/vite-plugin-vue/issues) that reports the same bug to avoid creating a duplicate. - [x] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to [vuejs/core](https://github.com/vuejs/core) instead. - [x] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite-plugin-vue/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/). - [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.