-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Using serve returns incorrect mime types #1030
Comments
That's weird. I get |
Yes I thought it was strange too. I am using Windows 10, if that helps Steps to reproduce:
Expected: Actual: You can also recreate with an html that refers to the javascript in the www folder, but I omitted that for brevity. |
How strange. Go's Edit: Apparently this is a bug in Go: golang/go#32350. Dang. I'll just hard-code a list of mime types into esbuild then. |
When you're doing this, can we update the mime-type to be |
Ha, I see you've already done so: c8eb58f#diff-0c0053e1b4e1305cfa2461cf9f9512103c358ab97557cc123ced99ebc3934221R120 |
When using the serve feature, esbuild returns the javascript files as "text/plain".
This causes an warning in Firefox:
More crucially if you are loading the entrypoint as WebWorker it will fail to load, with this error:
Is it possible to:
a) Change the serve feature to return the correct mime types (
application/javascript
for .js files)?b) Allow customization of the mime types returned?
Also thanks for esbuild, it is amazing how much faster it makes javascript development.
The text was updated successfully, but these errors were encountered: