Skip to content

add worker loader to allow worker to be found after bundling#210

Open
mbrevda wants to merge 2 commits intopinojs:mainfrom
mbrevda:bundleWorker
Open

add worker loader to allow worker to be found after bundling#210
mbrevda wants to merge 2 commits intopinojs:mainfrom
mbrevda:bundleWorker

Conversation

@mbrevda
Copy link
Copy Markdown

@mbrevda mbrevda commented May 1, 2026

re pinojs/pino#2272, allow thread-stream to be bundled, while still allowing the thread to be initialized by path.

As most bundlers code-split on dynamic import, this can be further enhanced when the project moves to ESM.

Comment thread lib/workerLoader.js
Co-authored-by: Matteo Collina <matteo.collina@gmail.com>
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.

2 participants