File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
packages/@tailwindcss-node/src Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414### Fixed
1515
1616- Fix Safari devtools rendering issue due to ` color-mix ` fallback ([ #19069 ] ( https://github.com/tailwindlabs/tailwindcss/pull/19069 ) )
17+ - Suppress Lightning CSS warnings about ` :deep ` , ` :slotted ` and ` :global ` ([ #19094 ] ( https://github.com/tailwindlabs/tailwindcss/pull/19094 ) )
1718
1819## [ 4.1.14] - 2025-10-01
1920
Original file line number Diff line number Diff line change @@ -60,6 +60,17 @@ export function optimize(
6060 let result = optimize ( Buffer . from ( input ) , map )
6161 map = result . map ?. toString ( )
6262
63+ result . warnings = result . warnings . filter ( ( warning ) => {
64+ // Ignore warnings about unknown pseudo-classes as they are likely caused
65+ // by the use of `:deep()`, `:slotted()`, and `:global()` which are not
66+ // standard CSS but are commonly used in frameworks like Vue.
67+ if ( / ' ( d e e p | s l o t t e d | g l o b a l ) ' i s n o t r e c o g n i z e d a s a v a l i d p s e u d o - / . test ( warning . message ) ) {
68+ return false
69+ }
70+
71+ return true
72+ } )
73+
6374 // Because of `errorRecovery: true`, there could be warnings, so let's let the
6475 // user know about them.
6576 if ( process . env . NODE_ENV !== 'test' && result . warnings . length > 0 ) {
You can’t perform that action at this time.
0 commit comments