You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
html: a custom bundler fails with DataCloneError unless threads is 1 #1201
Setting html.bundler to an adapter, the Vite one included, fails as soon as there's more than one thread. This is the config from docs/customization.md, minus the Vite options:
DataCloneError: context => buildServer({ ...context, vite: options }) could not be cloned.
threading/parallel.mjs sends each worker configuration[generatorName] as is, and functions can't be cloned. Since threads defaults to the CPU count, the documented example fails out of the box. It works with -p 1, and without bundler, since the generator creates the default adapter itself.
Markdown plugins had the same problem and #1157 fixed it by passing specifiers that workers import, so the bundler could probably work the same way.
Activity
fix(html): exclude custom bundler from worker configuration (fixes no…
avivkeller commentedon Nov 26, 2026
This is a tiny change with clear guidance already spelled out in review threads, and it's been ignored in every PR so far.
Reviewing and closing PRs that skip the discussion takes longer than writing the fix, so I’ll do it myself.