Skip to content

fix: use legacy worker for browser compat#40

Merged
vitormattos merged 2 commits intomainfrom
fix/use-legacy-worker-for-browser-compat
Mar 2, 2026
Merged

fix: use legacy worker for browser compat#40
vitormattos merged 2 commits intomainfrom
fix/use-legacy-worker-for-browser-compat

Conversation

@vitormattos
Copy link
Member

No description provided.

The standard pdfjs-dist worker build uses Uint8Array.prototype.toHex
natively, which requires Chrome 128+ and Firefox 132+. The legacy build
includes a polyfill for this method, making it compatible with the
browser targets declared in the project (Chrome 116+, Firefox ESR).

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos self-assigned this Mar 2, 2026
@vitormattos vitormattos merged commit f7b2983 into main Mar 2, 2026
4 checks passed
@vitormattos vitormattos deleted the fix/use-legacy-worker-for-browser-compat branch March 2, 2026 22:18
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