We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8415325 commit 1cf7eeeCopy full SHA for 1cf7eee
src/core/index.ts
@@ -303,6 +303,20 @@ export const plugin: UnpluginInstance<Options | undefined, false> =
303
!config.isProduction
304
),
305
}
306
+
307
+ // #507 suppress warnings for non-recognized pseudo selectors from lightningcss
308
+ const _warn = config.logger.warn
309
+ config.logger.warn = (...args) => {
310
+ const msg = args[0]
311
+ if (
312
+ /\[lightningcss\] '(?:deep|slotted|global)' is not recognized as a valid pseudo-/.test(
313
+ msg,
314
+ )
315
+ ) {
316
+ return
317
+ }
318
+ _warn(...args)
319
320
},
321
322
configureServer(server) {
0 commit comments