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
I'm not sure if its Vite's problem or vite-plugin-svelte so i cross post here.
I'm using latest sveltekit and in short if css is imported inline .css?inline
and saved ,vite reports it as edit of file that was importing it and not name of css itself.
Repro is here: https://github.com/ambrt/inline-css-bug-vite
Cross post bug is here sveltejs/vite-plugin-svelte#232
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/vue-next instead.
ambrt
changed the title
Edit of imported inline css HMR reports as page importing and not css file itself
Edit of imported inline css, HMR reports as page importing and not css file itself
Dec 20, 2021
Problem is appearing in Vite API import.meta.hot.on("vite:beforeUpdate", (data) => {}) which is exactly problem that i have. path value shows as index.svelte and not front.css.
(I use it to switch custom store value based on file being saved in editor)
Describe the bug
I'm not sure if its Vite's problem or vite-plugin-svelte so i cross post here.
I'm using latest sveltekit and in short if css is imported inline
.css?inline
and saved ,vite reports it as edit of file that was importing it and not name of css itself.
Repro is here:
https://github.com/ambrt/inline-css-bug-vite
Cross post bug is here
sveltejs/vite-plugin-svelte#232
Reproduction
https://github.com/ambrt/inline-css-bug-vite
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: