We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent 2135c84 commit 15c0eb0Copy full SHA for 15c0eb0
packages/plugin-vue/src/index.ts
@@ -277,6 +277,20 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
277
!config.isProduction
278
),
279
}
280
+
281
+ // #507 suppress warnings for non-recognized pseudo selectors from lightningcss
282
+ const _warn = config.logger.warn
283
+ config.logger.warn = (...args) => {
284
+ const msg = args[0]
285
+ if (
286
+ msg.match(
287
+ /\[lightningcss\] '(deep|slotted|global)' is not recognized as a valid pseudo-/,
288
+ )
289
+ ) {
290
+ return
291
+ }
292
+ _warn(...args)
293
294
},
295
296
configureServer(server) {
0 commit comments