Skip to content

fix(html): exclude custom bundler from worker configuration - #1255

Closed
getdownandcode wants to merge 1 commit into
nodejs:mainfrom
getdownandcode:fix/bundler-worker-dataclone
Closed

getdownandcode wants to merge 1 commit into
nodejs:mainfrom
getdownandcode:fix/bundler-worker-dataclone

Conversation

@getdownandcode

Copy link
Copy Markdown

Fixes #1201

Excludes the HTML generator's bundler option from worker thread messages since it is only used on the main thread and contains uncloneable functions.

@getdownandcode
getdownandcode requested a review from a team as a code owner November 14, 2026 16:43
@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs-tooling Ready Ready Preview Nov 16, 2026 5:59am UTC

Request Review

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.32%. Comparing base (b65d7c1) to head (49607b8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1255      +/-   ##
==========================================
+ Coverage   94.31%   94.32%   +0.01%     
==========================================
  Files         293      293              
  Lines       29912    29971      +59     
  Branches     3057     3062       +5     
==========================================
+ Hits        28211    28270      +59     
  Misses       1679     1679              
  Partials       22       22              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

api-links Generator

Performance estimate (single CI run)

  • Generation time: 2.8% slower (710.00 ms → 730.00 ms)
  • Peak memory: 3.2% lower (292.45 MB → 283.06 MB)

json Generator

Performance estimate (single CI run)

  • Generation time: 27.0% faster (9.11 s → 6.65 s)
  • Peak memory: 0.7% higher (910.09 MB → 916.38 MB)

legacy-html Generator

Performance estimate (single CI run)

  • Generation time: 19.0% slower (11.57 s → 13.77 s)
  • Peak memory: 0.9% lower (1.39 GB → 1.38 GB)

legacy-json Generator

Performance estimate (single CI run)

  • Generation time: 7.9% faster (5.57 s → 5.13 s)
  • Peak memory: 1.6% higher (977.55 MB → 992.73 MB)

llms-txt Generator

Performance estimate (single CI run)

  • Generation time: 45.8% faster (9.12 s → 4.94 s)
  • Peak memory: 4.4% higher (814.07 MB → 850.24 MB)

orama-db Generator

Performance estimate (single CI run)

  • Generation time: 13.4% slower (5.45 s → 6.18 s)
  • Peak memory: 9.8% lower (1.07 GB → 984.93 MB)

web Generator

Performance estimate (single CI run)

  • Generation time: 17.4% faster (20.95 s → 17.31 s)
  • Peak memory: 1.1% higher (1.46 GB → 1.47 GB)

@ovflowd ovflowd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unsure how this PR is different from #1204 could you please give an 👀 from the reviews we gave on the other PR? And if applicable address them here?

@getdownandcode

Copy link
Copy Markdown
Author

Thanks @ovflowd. Regarding #1204:

  1. Status: fix(html): exclude custom bundler from worker configuration #1204 was closed unmerged by @avivkeller, so html: a custom bundler fails with DataCloneError unless threads is 1 #1201 remains open on main.

  2. Ternary feedback addressed: Updated packages/core/src/threading/parallel.mjs to eliminate the ternary and use clean sequential assignment.

  3. Explicit workerConfigOmit: As discussed in fix(html): exclude custom bundler from worker configuration #1204 reviews, explicit omission (workerConfigOmit: ['bundler']) is retained because auto-dropping uncloneables could mask configuration bugs, whereas explicit omission keeps main-thread-only options deterministic.

@avivkeller avivkeller closed this Nov 18, 2026
@avivkeller

Copy link
Copy Markdown
Member

Spam PR

This branch was successfully deployed

1 active deployment
Preview – api-docs-tooling — 49607b83 Deployed Nov 16, 2026 by vercel[bot]
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.

html: a custom bundler fails with DataCloneError unless threads is 1

3 participants