fix: supress A11y warnings for svelte

This commit is contained in:
Igor Randjelovic
2021-03-02 20:23:04 -08:00
committed by Nathan Walker
parent 34987d6662
commit f967606b3a
@@ -35,6 +35,12 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
injectCss: false,
native: true,
},
// Suppress A11y warnings
onwarn(warning, warn) {
if (!/A11y:/.test(warning.message)) {
warn(warning);
}
},
};
});