diff --git a/packages/web/rollup.config.js b/packages/web/rollup.config.js index f12e6b6d9..599ee5632 100644 --- a/packages/web/rollup.config.js +++ b/packages/web/rollup.config.js @@ -45,7 +45,7 @@ export default [ resolve({ browser: true, }), - + // If we're building for production (npm run build // instead of npm run dev), minify production && terser(), @@ -88,6 +88,20 @@ export default [ // enable run-time checks when not in 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 // a separate file - better for performance