-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import the same style file with scoped attribute #5447
Comments
I found that the reason for this problem is because the descriptor is cached by filename. If the filename is the same, the subsequent descriptor will overwrite the previous cache. Therefore, when getting the descriptor content, the previous I haven't found an effective solution. Do you have any good solutions? vite/packages/plugin-vue/src/utils/descriptorCache.ts Lines 69 to 71 in d788682
|
It might be worth thinking about not adding to the cache here if scoped is used, or adding the hash path to the component to the filename vite/packages/plugin-vue/src/main.ts Line 311 in d788682
|
rel #5977 |
Describe the bug
When importing the same file into different vue components apply only to one
Reproduction
git clone https://github.com/slynx-01/vite-css-trouble.git
npm i
npm run dev
look at browser
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: