Skip to content

Commit eba892c

Browse files
Merge pull request #2033 from inertiajs/svelte-suppress-a11y-warnings
[2.x] Suppress Svelte accessibility warnings from Playwright logs
2 parents 65602dd + 76d8fa2 commit eba892c

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)