mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.16k stars 9.95k forks source link

Question: Can I build without .mjs files? #18233

Closed TwisterMc closed 3 months ago

TwisterMc commented 3 months ago

I have a WordPress plugin that I maintain and it's a wrapper for PDF.js. However, I need .js files. .mjs files work as long as users update their web servers to support .mjs files; which is asking a lot for users who don't know anything about web development.

Is there a way I can build PDF.js on my own to compile to .js? Any help on how to do this would be appreciated.