Skip to content

Fix: Inline layout worker - #114

Merged
AlexIchenskiy merged 2 commits into
mainfrom
fix/inline-layout-worker
Aug 12, 2026
Merged

Fix: Inline layout worker#114
AlexIchenskiy merged 2 commits into
mainfrom
fix/inline-layout-worker

Conversation

@AlexIchenskiy

Copy link
Copy Markdown
Collaborator

The layout Web Worker was loaded via new Worker(new URL('./simulator.worker', import.meta.url)), which esbuild-based bundlers don't resolve, the worker never started and layout silently fell back to the main thread.
It's now bundled into a self-contained blob at build time and started from a Blob URL, so it works under any bundler (esbuild/Vite/rollup/webpack), with no bundler, and in Electron file:// - no consumer config. If the worker can't start, it transparently falls back to the main-thread simulator with a one-time warning.
No public API changes.

@AlexIchenskiy AlexIchenskiy self-assigned this Aug 12, 2026

@tonilastre tonilastre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Great catch for removing min.js scripts from docs too.

@AlexIchenskiy
AlexIchenskiy merged commit 0bfa5f9 into main Aug 12, 2026
4 checks passed
@AlexIchenskiy
AlexIchenskiy deleted the fix/inline-layout-worker branch August 12, 2026 11:18
github-actions Bot pushed a commit that referenced this pull request Aug 12, 2026
## [1.0.2](v1.0.1...v1.0.2) (2026-08-12)

### Fix

* Inline layout worker (#114) ([0bfa5f9](0bfa5f9)), closes [#114](#114)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants