-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
A way to detect watch mode in 0.17.x #2823
Comments
looking for the solution as well... @evanw do we have a workaround? |
I think I'm running into the same issue with watch as well. |
I’ve come across esbuild-dev. Hopefully this example will be useful for your plugins. |
hey guys I just happen to see this issue and remember seeing a video that talks about this breaking change. The guy in the video doesn't seem happy about the change but he still managed to change his watch to the context watch, so you might find it useful https://www.youtube.com/watch?v=KBRQXPvJmw8 |
Before version 0.17.0 it was possible to detect watch mode by looking at
build.initialOptions.watch
, but with move to context API, what would be preferred way to detect watch mode from within a plugin to alter its logic?The text was updated successfully, but these errors were encountered: