mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 21:06:00 +00:00
rollup config - ignore some svelte warnings
This commit is contained in:
@@ -88,6 +88,20 @@ export default [
|
|||||||
// enable run-time checks when not in production
|
// enable run-time checks when not in production
|
||||||
dev: !production,
|
dev: !production,
|
||||||
},
|
},
|
||||||
|
onwarn: (warning, handler) => {
|
||||||
|
const ignoreWarnings = [
|
||||||
|
'a11y-click-events-have-key-events',
|
||||||
|
'a11y-missing-attribute',
|
||||||
|
'a11y-invalid-attribute',
|
||||||
|
'a11y-no-noninteractive-tabindex',
|
||||||
|
'a11y-label-has-associated-control',
|
||||||
|
'vite-plugin-svelte-css-no-scopable-elements',
|
||||||
|
'unused-export-let',
|
||||||
|
];
|
||||||
|
if (ignoreWarnings.includes(warning.code)) return;
|
||||||
|
// console.log('***************************', warning.code);
|
||||||
|
handler(warning);
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
// we'll extract any component CSS out into
|
// we'll extract any component CSS out into
|
||||||
// a separate file - better for performance
|
// a separate file - better for performance
|
||||||
|
|||||||
Reference in New Issue
Block a user