-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Environment and versions used
JSM 0.9
Steps to reproduce
Have a client build longer than the server build.
Right now the post-build hook is triggered when the server builds complete:
javascript-modules/vite-plugin/src/index.ts
Lines 11 to 18 in 1ba7ad1
| function buildSuccessPlugin(callback: () => void | Promise<void>): Plugin { | |
| return { | |
| name: "build-success-callback", | |
| async closeBundle(error) { | |
| if (!error) await callback(); | |
| }, | |
| }; | |
| } |
Because the client build may last longer, the yarn watch:callback command may run before the build completes
Desired Behavior
Ensure both builds complete before running the yarn watch:callback command
Metadata
Metadata
Labels
No labels