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
Vite allows for importing assets as strings. I have a monorepo and my main packages are using vite. Therefore, I always import static assets by using this technique. If I want to re-use those helper functions and import them in a worker, I get an error that no module loader is defined for that file extension (e.g. html).
It would be great if ?raw suffix was supported.
The text was updated successfully, but these errors were encountered:
Describe the solution
Vite allows for importing assets as strings. I have a monorepo and my main packages are using vite. Therefore, I always import static assets by using this technique. If I want to re-use those helper functions and import them in a worker, I get an error that no module loader is defined for that file extension (e.g. html).
It would be great if
?raw
suffix was supported.The text was updated successfully, but these errors were encountered: