upgraded vite

This commit is contained in:
Gani Georgiev
2023-01-10 15:26:36 +02:00
parent e1c751a7e7
commit c26ac2d53f
42 changed files with 1037 additions and 1043 deletions

View File

@@ -1,5 +1,5 @@
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vite';
import { svelte, vitePreprocess } from '@sveltejs/vite-plugin-svelte';
// see https://vitejs.dev/config
export default defineConfig({
@@ -14,9 +14,7 @@ export default defineConfig({
},
plugins: [
svelte({
experimental: {
useVitePreprocess: true,
},
preprocess: [vitePreprocess()],
onwarn: (warning, handler) => {
if (warning.code.startsWith('a11y-')) {
return; // silence a11y warnings