feat: move to unimport-icons

@lucide icons works very slow in barrel import, so i move to
unimport and use lucide icons
This commit is contained in:
2026-02-08 20:20:46 +05:00
parent 4a6e459407
commit 0f905bbc20
15 changed files with 279 additions and 64 deletions
+13 -1
View File
@@ -1,14 +1,21 @@
import { sveltekit } from "@sveltejs/kit/vite";
import Icons from "unplugin-icons/vite";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [sveltekit()],
plugins: [
sveltekit(),
Icons({
compiler: "svelte",
}),
],
test: {
environment: "jsdom",
globals: true,
isolate: true,
setupFiles: ["./tests/setup.ts"],
include: ["tests/**/*.{test,spec}.{js,ts}"],
exclude: ["**/node_modules/**", "**/dist/**", "**/.svelte-kit/**", "**/build/**"],
env: {
DEBUG_PRINT_LIMIT: "0",
},
@@ -26,6 +33,11 @@ export default defineConfig({
"**/coverage/**",
],
},
server: {
deps: {
inline: [/unplugin-icons/],
},
},
},
resolve: process.env.VITEST
? {