svelte.config.js 409 B

123456789101112131415161718
  1. import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
  2. export default {
  3. onwarn: (warning, handler) => {
  4. if (warning.code.startsWith('a11y-')) {
  5. return;
  6. }
  7. handler(warning);
  8. },
  9. // Consult https://svelte.dev/docs#compile-time-svelte-preprocess
  10. // for more information about preprocessors
  11. preprocess: vitePreprocess(),
  12. compilerOptions: {
  13. compatibility: {
  14. componentApi: 4,
  15. },
  16. },
  17. };