You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do NOT ignore this template or your issue will have a very high chance to be closed without comment.
Describe the bug
I have some emscripten compiled files in my public directory. Emscripten generates somename.data files and expects them to have the content type application/octet-stream.
Expected Content-Type: application/octet-stream
Actual
Vite serves it as application/javascript
Vite also complains about it in the logs
[vite] failed to parse /public/pyodide/pyodide.asm.data for import rewrite.
If you are using JSX, make sure to named the file with the .jsx extension.
Describe the bug
I have some emscripten compiled files in my public directory. Emscripten generates
somename.data
files and expects them to have the content typeapplication/octet-stream
.Expected
Content-Type: application/octet-stream
Actual
Vite serves it as
application/javascript
Vite also complains about it in the logs
Reproduction
npm install
npm run download:pyodide
to download and unpack pyodide.npm run dev
to start the development serverSystem Info
vite
version: 0.20.8vue
version (fromyarn.lock
orpackage-lock.json
)@vue/compiler-sfc
versionLogs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: