Skip to content
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

Add support for .mjs files #65

Merged
merged 1 commit into from
Sep 12, 2017
Merged

Conversation

WebReflection
Copy link
Contributor

@WebReflection WebReflection commented Sep 9, 2017

Right now these are served as application/octect-stream.

The latest mime module with latest mime-db thought would serve them as application/javascript.

This would enable direct index.mjs access without needing ?module or runtime transpilation.

Examples:
unpkg.com/hyperhtml@latest/index.mjs
unpkg.com/hyperhtml@latest/min.mjs

Please note GitHub is already serving the correct mime-type when it comes to .mjs files and, as ugly as a solution, I think unpkg should simply follow.

Thanks for updating this service.

Right now these are served as application/octect-stream
The latest mime module with latest mime-db thought
would serve them as application/javascript.

This would enable direct .mjs access without needing
?module or runtime transpilations.
@WebReflection
Copy link
Contributor Author

WebReflection commented Sep 12, 2017

come on @mjackson ... I know you can't wait to serve files with your own initials as extension !!! 😃

@mjackson
Copy link
Owner

Haha ;) Your appeal to my ego persuades me to click the merge button... thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants