From 9c68ac91e75ec40d8bdd758d99bc5c95e34795df Mon Sep 17 00:00:00 2001 From: code913 <54856929+code913@users.noreply.github.com> Date: Sun, 29 Oct 2023 07:50:07 +0000 Subject: [PATCH] refactor: i know better --- svelte.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/svelte.config.js b/svelte.config.js index 3f5e5fa..83e82f1 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -9,6 +9,12 @@ const config = { precompress: false, strict: true }) + }, + onwarn: (warning, handler) => { + if (warning.code.startsWith('a11y-')) { + return; + } + handler(warning); } };