Skip to content
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

Reload config on watch update #902

Open
leumasme opened this issue May 7, 2023 · 2 comments
Open

Reload config on watch update #902

leumasme opened this issue May 7, 2023 · 2 comments

Comments

@leumasme
Copy link
Contributor

leumasme commented May 7, 2023

I am currently using tsup with a tsup.config.ts.
This config file dynamically finds the target entry files because the logic behind it is too complex for globber matching.
When using tsup --watch however, it seems like the config is not reloaded on file updates, thus making it so that new files are not considered as possible entry files, and the watch process has to be restarted to include them.
Ideally, I could set some config option that makes it so that the config script is re-executed whenever watch mode detects an update.

Alternatively you could declare this as out-of-scope and I will simply have to use some third party watch-runner for this.
Thank you for your time either way.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@Dimava
Copy link

Dimava commented Aug 9, 2023

Related: #712

@williamli
Copy link

found a way around this by using npm package watch.

"dev": "watch 'tsup --watch' src/",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants