Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
as it javascript why not keep the extension as .js I don't really see the problem in having it as .js and the change to .mjs causes a lot of issues. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to create a .js build instead of .mjs build from the source? I tried changing gulpfile.mjs { to { and same for pdf.worker.js I got pdf.js and pdf.worker.js in build folder, but I am getting errors when using this script: pdf.js:12225 Uncaught SyntaxError: Cannot use 'import.meta' outside a module I see that import is used only in couple of places in pdf.js, maybe this can be fixed to allow users to make js build of pdf.js? Or we should just switch to .mjs and ignore legacy browsers and servers that don't support .mjs by default? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using a old version for a very long time as I 'only' use the view functionality and I have not see any issues so for me there have not really been a reason to read, however... npm continue to nag me with a 'security' warning so I decided to try to upgrade from v 3.10.111 to the latest v5.1.91
one major thing I notcied was that now the files are named .mjs
I looked at the github issues and saw that one have to reconfigure the web server - that might not be a trivial task.
Now, my real question is: who has decided that .mjs is a valid mime type ?
if it is a 'common' and defined mine type, then a issue should be created at nginx/apachec/xxxx, to support this type
If this is not a common mimetype, tnen why is it then used as it casues a lot of trouble
I did check here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types
and mjs is not on the list. I did find some infomration saying that mjs. is deprecated, but not 100% sure if that is correct
Thanks
Beta Was this translation helpful? Give feedback.
All reactions