Fermain / -mollify

10 stars 9 forks source link

Silence A11y warnings in build #213

Open Fermain opened 12 months ago

Fermain commented 12 months ago

When building the LMS there are many warnings that clutter up the build log.

// packages/lms/svelte.config.js
const config = {
  // ... config
  onwarn: (warning, handler) => {
    if (warning.code.startsWith('a11y-')) {
      return;
    }
    handler(warning);
  },
}

This change will silence these warnings.