style: fix formatting via prettier

This commit is contained in:
2026-08-28 14:29:54 +05:00
parent 10278981ba
commit ada96b3534
124 changed files with 8211 additions and 5662 deletions
+18 -18
View File
@@ -1,42 +1,42 @@
import adapter from '@sveltejs/adapter-static';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import adapter from "@sveltejs/adapter-static";
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
declare const process: { env: Record<string, string | undefined> };
const rawBase = (process.env.BASE_PATH ?? '').trim();
const base: '' | `/${string}` =
rawBase === '' || rawBase === '/'
? ''
: (`/${rawBase.replace(/^\/+/, '').replace(/\/+$/, '')}` as `/${string}`);
const rawBase = (process.env.BASE_PATH ?? "").trim();
const base: "" | `/${string}` =
rawBase === "" || rawBase === "/"
? ""
: (`/${rawBase.replace(/^\/+/, "").replace(/\/+$/, "")}` as `/${string}`);
export default defineConfig({
ssr: {
noExternal: ['@lucide/svelte']
noExternal: ["@lucide/svelte"],
},
plugins: [
sveltekit({
paths: {
base
base,
},
compilerOptions: {
// Force runes mode for the project, except for libraries. Can be removed in svelte 6.
runes: ({ filename }) =>
filename.split(/[/\\]/).includes('node_modules') ? undefined : true
filename.split(/[/\\]/).includes("node_modules") ? undefined : true,
},
adapter: adapter({
pages: 'build',
assets: 'build',
pages: "build",
assets: "build",
fallback: undefined,
precompress: false,
strict: true
strict: true,
}),
prerender: {
handleMissingId: 'warn'
}
})
]
handleMissingId: "warn",
},
}),
],
});