Skip to content

Commit 76d8fa2

Browse files
committed
Suppress accessibility warnings from build log
(cherry picked from commit c18cba5bd90d1b685e224886fdd062e5043c2621)
1 parent 88a765b commit 76d8fa2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/svelte/test-app/svelte.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
22

33
const config = {
4+
onwarn(warning, onwarn) {
5+
if (/A11y/.test(warning.message)) return
6+
7+
onwarn(warning)
8+
},
9+
410
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
511
// for more information about preprocessors
612
preprocess: vitePreprocess(),

0 commit comments

Comments
 (0)