2024-08-01 23:46:29 +00:00
|
|
|
import 'reflect-metadata'
|
2024-08-05 16:53:04 +00:00
|
|
|
import adapter from '@sveltejs/adapter-vercel';
|
2023-12-27 01:26:39 +00:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
2023-08-01 21:01:24 +00:00
|
|
|
import { preprocessMeltUI } from '@melt-ui/pp';
|
|
|
|
|
import sequence from 'svelte-sequential-preprocessor';
|
|
|
|
|
|
2023-06-30 22:08:45 +00:00
|
|
|
/** @type {import('@sveltejs/kit').Config}*/
|
2022-01-28 05:27:12 +00:00
|
|
|
const config = {
|
2023-05-25 04:19:08 +00:00
|
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
2022-12-25 18:52:36 +00:00
|
|
|
// for more information about preprocessors
|
2023-08-01 21:01:24 +00:00
|
|
|
preprocess: sequence([vitePreprocess({}), preprocessMeltUI()]),
|
2023-05-29 06:34:39 +00:00
|
|
|
vitePlugin: {
|
2023-11-13 06:04:44 +00:00
|
|
|
inspector: {
|
|
|
|
|
toggleKeyCombo: 'control-alt-shift',
|
|
|
|
|
showToggleButton: 'always',
|
2024-05-08 00:19:13 +00:00
|
|
|
toggleButtonPos: 'bottom-right',
|
|
|
|
|
},
|
2023-05-29 06:34:39 +00:00
|
|
|
},
|
2023-05-25 04:19:08 +00:00
|
|
|
kit: {
|
|
|
|
|
adapter: adapter(),
|
|
|
|
|
alias: {
|
2023-06-16 06:28:49 +00:00
|
|
|
$assets: './src/assets',
|
2023-06-30 22:08:45 +00:00
|
|
|
$components: './src/components',
|
|
|
|
|
'$components/*': 'src/lib/components/*',
|
2024-05-08 00:19:13 +00:00
|
|
|
$db: './src/db',
|
2023-07-30 23:31:39 +00:00
|
|
|
$server: './src/server',
|
2023-05-29 06:34:39 +00:00
|
|
|
$lib: './src/lib',
|
2023-07-03 06:04:33 +00:00
|
|
|
$state: './src/state',
|
2023-05-25 04:19:08 +00:00
|
|
|
$styles: './src/styles',
|
2024-05-08 00:19:13 +00:00
|
|
|
$themes: './src/themes',
|
|
|
|
|
},
|
2023-05-25 04:19:08 +00:00
|
|
|
},
|
2023-06-30 22:08:45 +00:00
|
|
|
shadcn: {
|
2024-05-08 00:19:13 +00:00
|
|
|
componentPath: './src/lib/components/ui',
|
2023-11-05 00:03:28 +00:00
|
|
|
},
|
|
|
|
|
compilerOptions: {
|
2024-05-08 00:19:13 +00:00
|
|
|
enableSourcemap: true,
|
|
|
|
|
},
|
2022-01-28 05:27:12 +00:00
|
|
|
};
|
2023-08-14 05:12:02 +00:00
|
|
|
|
2022-01-28 05:27:12 +00:00
|
|
|
export default config;
|