Skip to content

Commit a33e387

Browse files
committed
Improve warning handling
1 parent 5bafa14 commit a33e387

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

svelte.config.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ const config = {
1414
preprocess: SveltePreprocess(),
1515

1616
onwarn: (warning, handler) => {
17-
if (warning.code === "a11y-invalid-attribute") return;
18-
if (warning.code === "a11y-missing-attribute") return;
17+
if (warning.code.startsWith('a11y-')) {
18+
return;
19+
}
20+
21+
if (warning.code === "vite-plugin-svelte-preprocess-many-dependencies") {
22+
return;
23+
}
24+
25+
console.log(warning.code)
1926

2027
handler(warning);
2128
},

0 commit comments

Comments
 (0)