Repository navigation
Restores bundler-visible static module worker instantiation in @brainchop/core so Vite, Rollup, and Webpack 5 emit the persistent segmentation worker chunk reliably.
Browser Package (@brainchop/core)
- Static Worker URL Fix: Restored the direct
new Worker(new URL(__BC_WORKER__, import.meta.url), { type: 'module' })expression injs/src/index.tswhile retaining the persistent singleton worker and pooled GPU workspace introduced in1.1.1. - Bundler Regression Guards: Added a build-time check in
js/esbuild.config.mjs(coveringdist/index.jsand all per-model entry points) and a unit assertion injs/test/webgpu_v4_unit.test.mjsverifying that every published entry preserves the literalnew Worker(new URL("./worker*.js", import.meta.url), { type: "module" })call.
Full Changelog: v1.1.2...v1.1.3