mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +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,
|
injectCss: false,
|
||||||
native: true,
|
native: true,
|
||||||
},
|
},
|
||||||
|
// Suppress A11y warnings
|
||||||
|
onwarn(warning, warn) {
|
||||||
|
if (!/A11y:/.test(warning.message)) {
|
||||||
|
warn(warning);
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user