Skip to content

fix: statically import zstd glue so inline workers are self-contained#1

Merged
joaner merged 1 commit into
mainfrom
fix/inline-worker-static-glue
Jun 3, 2026
Merged

fix: statically import zstd glue so inline workers are self-contained#1
joaner merged 1 commit into
mainfrom
fix/inline-worker-static-glue

Conversation

@joaner
Copy link
Copy Markdown

@joaner joaner commented Jun 3, 2026

Inline workers (Vite ?worker&inline) run from blob: URLs, where the runtime relative import("./wasm-zstd.js") cannot be resolved, breaking consumers bundled with Next.js Turbopack ("Failed to resolve module specifier './wasm-zstd-*.js'"). Import the Emscripten glue statically so bundlers inline it into the worker chunk, making the worker fully self-contained.

Bump to 1.1.2.

Inline workers (Vite ?worker&inline) run from blob: URLs, where the
runtime relative import("./wasm-zstd.js") cannot be resolved, breaking
consumers bundled with Next.js Turbopack ("Failed to resolve module
specifier './wasm-zstd-*.js'"). Import the Emscripten glue statically so
bundlers inline it into the worker chunk, making the worker fully
self-contained.

Bump to 1.1.2.
@joaner joaner merged commit 9ecc032 into main Jun 3, 2026
1 check 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