4 ms·
presumably, declaring it this way means you don't ever distribute pdfjs but expect it to be available in the runtime. Not sure if this was the goal.
by chii 4y ago
presumably, declaring it this way means you don't ever distribute pdfjs but expect it to be available in the runtime.
Not sure if this was the goal.
- leodriesch 4y agoIt seems to me that they are using Rollup to bundle the PDF.js source code into their own. I’d guess it makes sense for PDF.js since you likely won’t need it outside of this library in your own project and it comes with multiple builds, of which they might choose one specific. Then install speeds are faster and node_modules are smaller.
- fgeiger 4y agoThanks for the explanation.