-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.mjs mimetype support #484
Comments
There's sadly a tangle of MIME-related dependencies to untangle. The underlying library dropped support for features we were using, so now we either need to re-implement them, drop them, or find other libraries to delegate the feature through... Once we find the way through these woods, address this should indeed be trivial. |
Following the workaround (solution?) here got this working for me. |
Is there currently a way to declare custom MIME type mappings? If so, can somebody please a) document it in the README, or b) explain it briefly here so I can write up a PR with improved docs? |
You can use the mime-types from a JSON file, that would allow us to have more control and would probably also fix issues #623 and #35 |
This should be fixed by #693, I'm leaving this open for now so it gets checked after that merges. |
This appears to be fixed on |
.mjs ECMA Script Module files are served with
application/octet-stream
MIME Typeinstead of
text/javascript
, so the modules do not get imported in Chrome because of this error:Can you serve these files with the correct mime type please? Sounds like a pretty minor change :)
The text was updated successfully, but these errors were encountered: