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 having trouble with a vite build that uses this plugin.
A certain component file (ValidationWrapper.tsx) includes an import './ValidationWrapper.scss' statement.
Normally when I run vite, that statement transforms to import "../../../../assets/ValidationWrapper.css". However, after making some code changes elsewhere in the library I'm developing, this statement now transforms to /* empty css */. This happens even though I haven't changed this tsx or scss file, nor the vite build configuration file, and the component is still being used--as a result, when an app uses the library I built, this component is no longer styled.
I won't be able to provide a definitive example since the repository is large and proprietary and I can't tell what exactly caused the issue. However, I can include my vite.config.js file in case you might know what causes the /* empty css */ comment in general and can suggest how to fix it and why it only started happening after an unrelated code change.
I'm having trouble with a vite build that uses this plugin.
A certain component file (ValidationWrapper.tsx) includes an
import './ValidationWrapper.scss'
statement.Normally when I run vite, that statement transforms to
import "../../../../assets/ValidationWrapper.css"
. However, after making some code changes elsewhere in the library I'm developing, this statement now transforms to/* empty css */
. This happens even though I haven't changed this tsx or scss file, nor the vite build configuration file, and the component is still being used--as a result, when an app uses the library I built, this component is no longer styled.I won't be able to provide a definitive example since the repository is large and proprietary and I can't tell what exactly caused the issue. However, I can include my vite.config.js file in case you might know what causes the /* empty css */ comment in general and can suggest how to fix it and why it only started happening after an unrelated code change.
The text was updated successfully, but these errors were encountered: