-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update react-fast-pdf to use modern pdfjs-dist lib #40
Conversation
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -46,7 +46,7 @@ module.exports = { | |||
// This causes issues if we have gone offline before the pdfjs web worker is set up as we won't be able to load it from the server. | |||
{ | |||
// eslint-disable-next-line prefer-regex-literals | |||
test: new RegExp('node_modules/pdfjs-dist/legacy/build/pdf.worker.min.mjs'), | |||
test: new RegExp('node_modules/pdfjs-dist/build/pdf.worker.min.mjs'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming from Expensify/App#55176. Switching to the new version broke PDF rendering on iOS 17.x.
Details
In the PR we want to load only the modern version of
pdf.worker.js
frompdfjs-dist
, it allows to use new features and perf optimisations technics.slack discussion -> https://callstack-hq.slack.com/archives/C05LX9D6E07/p1734018797851159?thread_ts=1734018163.878969&cid=C05LX9D6E07
Related Issues
Expensify/App#54095
Manual Tests
Linked PRs
Expensify/App#54250