Skip to content

Commit

Permalink
Merge pull request #2033 from inertiajs/svelte-suppress-a11y-warnings
Browse files Browse the repository at this point in the history
[2.x] Suppress Svelte accessibility warnings from Playwright logs
  • Loading branch information
joetannenbaum authored Oct 15, 2024
2 parents 65602dd + 76d8fa2 commit eba892c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/svelte/test-app/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

const config = {
onwarn(warning, onwarn) {
if (/A11y/.test(warning.message)) return

onwarn(warning)
},

// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
Expand Down

0 comments on commit eba892c

Please sign in to comment.