Skip to content

Commit 64bf7b4

Browse files
authored
Update packages/@tailwindcss-node/src/optimize.ts
1 parent 1283281 commit 64bf7b4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/@tailwindcss-node/src/optimize.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ export function optimize(
6161
map = result.map?.toString()
6262

6363
result.warnings = result.warnings.filter((warning) => {
64-
// Ignore warnings about unknown pseudo-classes and pseudo-elements as they
65-
// are likely caused by the use of `:deep()`, `:slotted()`, and `:global()`
66-
// in frameworks like Vue, or `::ng-deep` and `:host-context()` in Angular.
67-
// None of these are standard CSS, and each is resolved by the framework's
68-
// own compiler before the CSS reaches a browser.
64+
// Ignore warnings about unknown pseudo-classes that are used in frameworks
65+
// such as Vue or Angular and are handled by their own compilers, before
66+
// reaching the browser.
6967
if (
7068
/'(deep|slotted|global|ng-deep|host-context)' is not recognized as a valid pseudo-/.test(
7169
warning.message,

0 commit comments

Comments
 (0)