Skip to content

Conversation

@ThomasK33
Copy link
Member

When workerPool.ts runs from dist/, the existing logic would
incorrectly try to replace 'src' with 'dist' again, leading to
malformed paths like dist/utils/main/dist/utils/main/worker.js.

Now checks if 'dist' already exists in the path before performing
the src->dist replacement, ensuring correct worker resolution in
both development (src/) and production (dist/) contexts.

When workerPool.ts runs from dist/, the existing logic would
incorrectly try to replace 'src' with 'dist' again, leading to
malformed paths like dist/utils/main/dist/utils/main/worker.js.

Now checks if 'dist' already exists in the path before performing
the src->dist replacement, ensuring correct worker resolution in
both development (src/) and production (dist/) contexts.
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 "@codex address that feedback".

@ThomasK33 ThomasK33 added this pull request to the merge queue Nov 4, 2025
Merged via the queue into main with commit 4a5ff11 Nov 4, 2025
13 checks passed
@ThomasK33 ThomasK33 deleted the thomask33/11-04-fix_worker_path_dist_check branch November 4, 2025 13:27
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