-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Importing TypeScript files with ?url
suffix result in the file not being transpiled
#9952
Comments
Looks like a bug that it should be transpiled by default, you can workaround it by using |
I think this is related to #6757, #2522 (comment). |
Thanks for the reply, using |
The second looks definitely related, I'm not sure about the first, it seems to be a different problem? |
There is definitely a regression somewhere. Using |
Duplicate of #6979 |
Describe the bug
I'm using the
?url
suffix to import a TypeScript file to use it in an AudioWorklet.The problem is that Vite is not transpiling my TS file into a JS one, so the worklet fails because of it.
I think Vite should either transpile the files that it knows how to transpile, and return as URL the transpiled file, or a new option should be added to tell Vite to transpile it (e.g.
?url&transpile
)Reproduction
https://github.com/FezVrasta/vite-ts-url-import
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: