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

feat: add watch hook and context functions #55

Merged
merged 1 commit into from
Mar 7, 2022
Merged

feat: add watch hook and context functions #55

merged 1 commit into from
Mar 7, 2022

Conversation

jwr1
Copy link
Contributor

@jwr1 jwr1 commented Mar 2, 2022

Add support for watchChange hook, this.addWatchFile, this.emitFile, and this.getWatchFiles. The last three are provided whithin the this context for the buildStart hook. Closes #53.

@antfu
Copy link
Member

antfu commented Mar 2, 2022

I think the context can be provided to all the hooks

@antfu antfu changed the title Feat: add watch hook and context functions feat: add watch hook and context functions Mar 7, 2022
@antfu antfu merged commit 544e66c into unjs:main Mar 7, 2022
@antfu
Copy link
Member

antfu commented Mar 7, 2022

Leave it for future enhancement

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

Successfully merging this pull request may close these issues.

Add support for watch mode
2 participants