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
Which means that the exported value is (rather than being a URL as expected) the entire following string: export default \"/style.css\", which I can't imagine would be useful in any context.
System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:
Describe the bug
Attempting to import a stylesheet as a url fails. This is useful for injecting a stylesheet into shadow-dom via a link tag.
Reproduction
import url from './style.css?url'
The server responds to the request for
./style.css?url
with the following transpiled module:Which means that the exported value is (rather than being a URL as expected) the entire following string:
export default \"/style.css\"
, which I can't imagine would be useful in any context.System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
The text was updated successfully, but these errors were encountered: