Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit ba5345c

Browse files
committed
fix(esbuild): sequence rebuild calls to prevent Windows EBUSY race on asset copy
1 parent fda3e98 commit ba5345c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/esbuild.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ async function main() {
125125
copyLocales(srcDir, distDir)
126126
setupLocaleWatcher(srcDir, distDir)
127127
} else {
128-
await Promise.all([extensionCtx.rebuild(), workerCtx.rebuild()])
128+
// Run sequentially on rebuild to avoid Windows EBUSY races when both
129+
// onEnd hooks copy the same asset directories concurrently.
130+
await extensionCtx.rebuild()
131+
await workerCtx.rebuild()
129132
await Promise.all([extensionCtx.dispose(), workerCtx.dispose()])
130133
}
131134
}

0 commit comments

Comments
 (0)