Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1cf7eee

Browse files
committed
fix: suppress warnings for non-recognized pseudo selectors form lightningcss
refvitejs/vite-plugin-vue@15c0eb0
1 parent8415325 commit1cf7eee

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎src/core/index.ts‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,20 @@ export const plugin: UnpluginInstance<Options | undefined, false> =
303303
!config.isProduction
304304
),
305305
}
306+
307+
// #507 suppress warnings for non-recognized pseudo selectors from lightningcss
308+
const_warn=config.logger.warn
309+
config.logger.warn=(...args)=>{
310+
constmsg=args[0]
311+
if(
312+
/\[lightningcss\]'(?:deep|slotted|global)'isnotrecognizedasavalidpseudo-/.test(
313+
msg,
314+
)
315+
){
316+
return
317+
}
318+
_warn(...args)
319+
}
306320
},
307321

308322
configureServer(server){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp