fix(plugin-vue): suppress spammy lightningcss warnings with new tag#753
fix(plugin-vue): suppress spammy lightningcss warnings with new tag#753matthewwithanm wants to merge 1 commit intovitejs:mainfrom
Conversation
Discussed previously in both vitejs#507 and vitejs#594, lightningcss has some noisy warnings about (apparently) expected invalid CSS. After upgrading to Vite 8, I'm seeing them again with a slight variation: the message now starts with "[lightningcss minify]" instead of just "[lightningcss]", so the existing RegExp no longer matches. I'm not clear on why the invalid selectors are included in the first place, but when I reverted to Vite 7 they were there too so I guess this is expected behavior?
commit: |
|
I would expect the vue specific selectors ( |
|
@sapphi-red Thanks for the reply! Yeah, that's I expected but I was thrown by the fact that the selectors were present in the Vite 7 output and assumed I didn't understand the expected behavior. 😅 This was the result of using an scss mixin that contains Going to close this PR. |
Description
Discussed previously in both #507 and #594, lightningcss has some noisy warnings about (apparently) expected invalid CSS.
After upgrading to Vite 8, I'm seeing them again with a slight variation: the message now starts with "[lightningcss minify]" instead of just "[lightningcss]", so the existing RegExp no longer matches.
I'm not clear on why the invalid selectors are included in the first place, but when I reverted to Vite 7 they were there too so I guess this is expected behavior?
Apologies in advance if I'm missing something!
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123).