1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00
pdf.js/external
Jonas Jenwald 8bcc3664c9 [api-minor] Attempt to improve support for using the PDF.js builds with Vite
Similar to Webpack there's apparently other bundlers that will not leave `import`-calls alone unless magic comments are used.
Hence we extend the builder to also append `/* @vite-ignore */` comments to `import`-calls, in order to attempt to improve support for using the PDF.js builds together with Vite.

This patch also renames `__non_webpack_import__` to `__raw_import__` since the functionality is no longer bundler-specific.

***PLEASE NOTE:*** This patch is provided as-is, and it does *not* mean that the PDF.js project can/will provide official support for Vite.
2025-03-28 16:34:00 +01:00
..
bcmaps Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00
builder [api-minor] Attempt to improve support for using the PDF.js builds with Vite 2025-03-28 16:34:00 +01:00
cmapscompress [ESM] Convert the "cmaps"-task to use import() syntax 2023-07-08 18:52:58 +02:00
dist Rename *.d.ts to *.d.mts. Close #17241 2023-11-12 07:30:36 +09:00
iccs [api-minor] Use an icc profile for converting CMYK to RGB 2025-03-10 14:18:20 +01:00
importL10n Fix the repository URLs in the importl10n script 2024-08-15 19:51:48 +02:00
openjpeg Use the latest emsdk version to compile openjpeg decoder 2025-03-04 18:41:20 +01:00
qcms [api-minor] Use an icc profile for converting CMYK to RGB 2025-03-10 14:18:20 +01:00
quickjs Update quickjs to 3f81070e573e3592728dbbbd04c84c498b20d6dc 2024-02-09 11:51:24 +01:00
standard_fonts [api-minor] Use a local font or fallback on an embedded one (if it exists) for non-embedded fonts (bug 1766039) 2023-05-10 14:10:23 +02:00
.gitignore Removes external/cmaps; adds binary cmaps to the repo 2014-03-17 13:30:27 -05:00