Skip to content

Commit

Permalink
Suppress accessibility warnings from build log
Browse files Browse the repository at this point in the history
(cherry picked from commit c18cba5bd90d1b685e224886fdd062e5043c2621)
  • Loading branch information
pedroborges committed Oct 15, 2024
1 parent 88a765b commit 76d8fa2
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 76d8fa2

Please sign in to comment.