You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dist/identifier/identifier-manager.d.ts
In both files you have a reference to the identifier-1
Add a new identifier new Identifier("identifier-2") in the src/identifier/identifier-list.ts
You can see that only dist/identifier/identifier-list.d.ts file was updated correctly.
To have both files updated correctly, you can either restart the npm run build:watch or add space in the src/identifier/identifier-manager.ts.
The bug is also present when rollupTypes is set to true.
In that case, the my-lib.d.ts is not updated at all.
### Validations
- [X] Read the [FAQ](https://github.com/qmhc/vite-plugin-dts#faq).
- [X] Check that there isn't [already an issue](https://github.com/qmhc/vite-plugin-dts/issues) that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I run
vite
inbuild --watch
mode, it does not regenerate correctly the types.See the reproduction steps for more details.
Reproduction
https://github.com/Lukinoh/repro-build-watch-bug-vite-plugin-dts
Steps to reproduce
git clone [email protected]:Lukinoh/repro-build-watch-bug-vite-plugin-dts.git
cd repro-build-watch-vite-plugin-dts
npm install
npm run build:watch
Open the files
dist/identifier/identifier-list.d.ts
dist/identifier/identifier-manager.d.ts
In both files you have a reference to the
identifier-1
Add a new identifier
new Identifier("identifier-2")
in thesrc/identifier/identifier-list.ts
You can see that only
dist/identifier/identifier-list.d.ts
file was updated correctly.To have both files updated correctly, you can either restart the
npm run build:watch
or add space in thesrc/identifier/identifier-manager.ts
.The bug is also present when
rollupTypes
is set totrue
.In that case, the
my-lib.d.ts
is not updated at all.System Info
The text was updated successfully, but these errors were encountered: