2024-12-14 03:40:47 +01:00
|
|
|
import adapter from '@sveltejs/adapter-auto';
|
2026-04-12 08:58:41 +01:00
|
|
|
import path from 'path';
|
|
|
|
|
import { fileURLToPath } from 'url';
|
2024-12-14 03:40:47 +01:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
|
|
2026-04-12 08:58:41 +01:00
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
|
|
2024-12-14 03:40:47 +01:00
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
|
const config = {
|
2025-05-16 12:08:42 +01:00
|
|
|
preprocess: vitePreprocess({
|
|
|
|
|
script: true
|
|
|
|
|
}),
|
2024-12-14 03:40:47 +01:00
|
|
|
|
|
|
|
|
kit: {
|
|
|
|
|
adapter: adapter(),
|
|
|
|
|
|
|
|
|
|
alias: {
|
2026-04-12 08:58:41 +01:00
|
|
|
$lib: path.resolve(__dirname, './src/lib'),
|
|
|
|
|
'@cio/ui': path.resolve(__dirname, './node_modules/@cio/ui/src'),
|
|
|
|
|
'@cio/ui/*': path.resolve(__dirname, './node_modules/@cio/ui/src/*')
|
2024-12-14 03:40:47 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|