File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
packages/astro/src/core/logger Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' astro ' : patch
3
+ ---
4
+
5
+ Ignores lightningcss unsupported pseudo-class warning.
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ const viteBuildMsg = /vite.*building.*for production/;
21
21
const viteShortcutTitleMsg = / ^ \s * S h o r t c u t s \s * $ / ;
22
22
// capture "press * + enter to ..." messages
23
23
const viteShortcutHelpMsg = / p r e s s ( .+ ?) t o ( .+ ) $ / s;
24
+ // 'global' is not recognized as a valid pseudo-class
25
+ const lightningcssUnsupportedPseudoMsg = / \[ l i g h t n i n g c s s \] ' g l o b a l ' .* n o t r e c o g n i z e d .* p s e u d o - c l a s s / s;
24
26
25
27
export function createViteLogger (
26
28
astroLogger : AstroLogger ,
@@ -63,6 +65,8 @@ export function createViteLogger(
63
65
warn ( msg ) {
64
66
if ( ! isLogLevelEnabled ( viteLogLevel , 'warn' ) ) return ;
65
67
68
+ if ( lightningcssUnsupportedPseudoMsg . test ( msg ) ) return ;
69
+
66
70
logger . hasWarned = true ;
67
71
astroLogger . warn ( 'vite' , msg ) ;
68
72
} ,
You can’t perform that action at this time.
0 commit comments