Skip to content

Revert "Stop startDevServer2 from keeping esbuild alive"#46

Merged
seveibar merged 1 commit intomainfrom
revert-43-codex/fix-startdevserver2-to-not-persistently-run-esbuild
Sep 25, 2025
Merged

Revert "Stop startDevServer2 from keeping esbuild alive"#46
seveibar merged 1 commit intomainfrom
revert-43-codex/fix-startdevserver2-to-not-persistently-run-esbuild

Conversation

@seveibar
Copy link
Contributor

Reverts #43

@seveibar seveibar merged commit 65b4f3b into main Sep 25, 2025
1 check passed
@seveibar seveibar deleted the revert-43-codex/fix-startdevserver2-to-not-persistently-run-esbuild branch September 25, 2025 23:05
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 210 to 216

const handleFileChange = async (isManifestChange: boolean = false) => {
if (isManifestChange) {
manifestNeedsUpdate = true
await updateManifest()
}
await build()
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Serialize concurrent rebuilds

The revert drops the isBuilding/rebuildScheduled gating, so every watcher event now calls build() without any concurrency control. Because the file watchers invoke their async handlers without awaiting them, two quick file changes will run build() in parallel. Esbuild’s BuildContext.rebuild() must not be invoked while a previous rebuild is still running, so concurrent calls will throw and the dev server will report repeated build failures instead of queuing the change. Please reintroduce a mutex/queue so only one rebuild runs at a time.

Useful? React with 👍 / 👎.

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.

1 participant