wessberg / rollup-plugin-ts

A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc
MIT License
496 stars 32 forks source link

Error: Cannot call addWatchFile after the build has finished. #183

Closed hjoelh closed 2 years ago

hjoelh commented 2 years ago

Reproduction

https://replit.com/@hjoelh/rollup-plugin-ts-issue fork repl run yarn run rollupWatch in shell make an edit to src/components/JSComponent.jsx

seems to only happen when editing JSComponent.jsx rather than Component.tsx?

Expected Behavior

rollup watch to bundle on file changes

Actual Behavior

sometimes it bundles succesfully other times it errors with CleanShot 2022-06-01 at 11 10 06

Thank you!

wessberg commented 2 years ago

Hey there. Thanks for making me aware of this issue. It has been resolved and will be part of the next release. Also, thank you so much for sponsoring. It helps a ton, and allows me to focus more on my open source work. So, thanks <3