这是indexloc提供的服务,不要输入任何密码
Skip to content

Reload config on watch update #902

@leumasme

Description

@leumasme

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions