-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feat: Update react-pdf to 5.7.2 #2413
Conversation
BundleMonUnchanged files (2)
No change in files bundle size Unchanged groups (1)
Final result: ✅ View report in BundleMon website ➡️ |
db24a93
to
ca11c18
Compare
@@ -247,7 +247,7 @@ For performance reasons, it is important to use a web worker when showing PDF fi | |||
```diff | |||
+ resolve: { | |||
+ alias: { | |||
+ 'react-pdf$' : 'react-pdf/dist/entry.webpack.js' | |||
+ 'react-pdf$' : 'react-pdf/dist/esm/entry.webpack' |
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.
il y a un souci dans le commit message au niveau du BC je crois, dans le before on devrait avoir react-pdf/dist/entry.webpack.js
non ?
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.
Oh oui tous juste une erreur de copier-coller je corrige ça de suite
This update provides version 2.12.313 of pdfjs-dist. This version resolves rendering issues with some PDFs. BREAKING CHANGE: This update requires the two changes above in your application if you use the `Viewer` to display PDF. You can find more detail in `Viewer` documentation : https://docs.cozy.io/cozy-ui/react/#!/Viewer Before : - react-pdf alias : `react-pdf/dist/entry.webpack.js` - public import for pdf worker : `react-pdf/dist/pdf.worker.entry.js` After : - react-pdf alias : `react-pdf/dist/esm/entry.webpack` - public import for pdf worker : `react-pdf/dist/esm/pdf.worker.entry`
ca11c18
to
174bd4d
Compare
🎉 This PR is included in version 83.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This update provides version 2.12.313 of pdfjs-dist. This version resolves rendering issues with some PDFs like the screenshot above. There is two breaking change on the way to import react-pdf into final application. All the detail can be found into the commit message of c0d7441
Development notes :
I tried to upgrade to the latest version of react-pdf which is currently 6.2.2. But I encountered a problem related to this issue: wojtekmaj/react-pdf#1043 from the pdf.js lib. It seems that there is a link with our webpack configuration. I modified the babel configuration to transcompile the pdf.js module without success.