mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix: supress A11y warnings for svelte
This commit is contained in:
@ -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);
|
||||
}
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user