Merge pull request #16622 from Snuffleupagus/image_decoders-rm-polyfill-comment
Remove outdated polyfill comment from `src/pdf.image_decoders.js`
This commit is contained in:
commit
ac937a9b3c
@ -18,20 +18,6 @@ import { Jbig2Image } from "./core/jbig2.js";
|
|||||||
import { JpegImage } from "./core/jpg.js";
|
import { JpegImage } from "./core/jpg.js";
|
||||||
import { JpxImage } from "./core/jpx.js";
|
import { JpxImage } from "./core/jpx.js";
|
||||||
|
|
||||||
// To ensure that the standalone PDF.js image decoders have the same
|
|
||||||
// browser/environment compatibility as the regular PDF.js library,
|
|
||||||
// the standard set of polyfills are thus included in this build as well.
|
|
||||||
//
|
|
||||||
// Given that the (current) image decoders don't use all of the features
|
|
||||||
// of the complete PDF.js library, e.g. they are completely synchronous,
|
|
||||||
// some of the larger polyfills are thus unnecessary.
|
|
||||||
//
|
|
||||||
// In an attempt to reduce the size of the standalone PDF.js image decoders,
|
|
||||||
// the following polyfills are currently being excluded:
|
|
||||||
// - ReadableStream
|
|
||||||
// - Promise
|
|
||||||
// - URL
|
|
||||||
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
const pdfjsVersion = PDFJSDev.eval("BUNDLE_VERSION");
|
const pdfjsVersion = PDFJSDev.eval("BUNDLE_VERSION");
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
|
Loading…
x
Reference in New Issue
Block a user