Upgraded pdfjs-dist to 2.16.105
What does this MR do and why?
The MR upgrades the pdfjs-dist
package to the latest version. The issue is that the latest versions of the package do not come transpiled and, hence, are not ready to be used in Webpack 4 env as-is.
This MR upgrades the package and updates the references to the package in code to use the legacy
version of the package which is safe to use in the outdated environments like Webpack 4 without additional loaders like babel-loader
(which is very slow especially on the really large files like the pdfjs-dist worker).
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Upload a PDF file to a repo
- Make sure there are no
[object%20Object]
entries in the DevTools' "Network" tab
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #375527 (closed)
Edited by Denys Mishunov