Update packages, ignore sveltestrap related warnings on compile

This commit is contained in:
Christoph Kluge
2025-05-14 11:02:48 +02:00
parent b3135c982f
commit be7ccc78b8
3 changed files with 25 additions and 23 deletions

View File

@@ -12,7 +12,9 @@ const plugins = [
svelte({
compilerOptions: {
// enable run-time checks when not in production
dev: !production
dev: !production,
// As of sveltestrap 7.1.0, filtered warnings would appear for imported sveltestrap components
warningFilter: (warning) => (warning.code !== 'element_invalid_self_closing_tag' && warning.code !== 'a11y_interactive_supports_focus')
}
}),