vite build
: Wrong mime-type (e.g. video/mp2t
) when using import workerUrl from './my-worker.js?url
syntax
#10271
Closed
7 tasks done
Labels
Describe the bug
When using the
?url
worker import syntax e.g.import workerUrl from './my-worker.js?url
syntax, Vite currently infers the wrong mime-type. I guess in the case of TS it should re-write it to.js
instead like it does for the?worker
behaviour.Reproduction
https://stackblitz.com/edit/vitejs-vite-gjqkkn?file=dist/assets/index.c7da7740.js
System Info
Used Package Manager
npm
Logs
Output file:
Validations
Related
#2642
The text was updated successfully, but these errors were encountered: