Skip to content

fix(build): stub node:diagnostics_channel at Rollup level to fix SPAR…#27

Merged
ThHanke merged 2 commits into
mainfrom
refactor/sparql-widget
Jun 29, 2026
Merged

fix(build): stub node:diagnostics_channel at Rollup level to fix SPAR…#27
ThHanke merged 2 commits into
mainfrom
refactor/sparql-widget

Conversation

@ThHanke

@ThHanke ThHanke commented Jun 29, 2026

Copy link
Copy Markdown
Owner

…QL production crash

lru-cache v11 imports node:diagnostics_channel which Vite's Rollup builder stubs as empty object — crashes worker at init with "f.channel is not a function". Extend workerComunicaPlugin with enforce:"pre" resolveId+load for a virtual ESM noop module covering all imports, not just those inside the esbuild prebundle.

Also fix 6 broken ToC anchor links in README by adding id attrs to

Details tags.

Thomas Hanke added 2 commits June 29, 2026 09:22
…QL production crash

lru-cache v11 imports node:diagnostics_channel which Vite's Rollup builder
stubs as empty object — crashes worker at init with "f.channel is not a function".
Extend workerComunicaPlugin with enforce:"pre" resolveId+load for a virtual
ESM noop module covering all imports, not just those inside the esbuild prebundle.

Also fix 6 broken ToC anchor links in README by adding id attrs to <details> tags.
COI service worker can reload the page after goto, wiping the worker store.
The old per-call retry only re-ran the interrupted call — earlier seeded data
was lost. New shared helpers in e2e-helpers.ts:
- gotoAndWaitForReady: absorbs COI reload before returning
- seedWithRetry: re-runs entire seed sequence if reload detected mid-seed
- callTool: retry wrapper with proper re-stabilisation

Migrated reasoning-named-restriction, reasoning-inconsistency, sparql-worker.
@ThHanke
ThHanke merged commit 06b9569 into main Jun 29, 2026
4 checks passed
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