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
Heya!! so if I import .css files with ?url, I get export default text in the string. This does not happen when I import any other asset with ?url flag.
importstyleUrlfrom'./xyz.css?url';// importing css file as URLimportjsUrlfrom'./xyz.js?url';// importing js file as URLconsole.log(styleUrl);// this outputs text like, " export default './client/xyz.css' "console.log(jsUrl);// this outputs text like " './client/xyz.js' "
I have added a reproduction link that shows the issue.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
Heya!! so if I import
.css
files with?url
, I getexport default
text in the string. This does not happen when I import any other asset with?url
flag.I have added a reproduction link that shows the issue.
Reproduction
https://stackblitz.com/edit/vitejs-vite-ybvvxo?file=main.js&terminal=dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: