You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.1 KiB

import adapter from '@sveltejs/adapter-static';
/** @type {import('@sveltejs/kit').Config} */
const config = {
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)
},
kit: {
// `/test/auth` is a server-action harness for local development and cannot
// be emitted by adapter-static. The docs site and static test pages are
// prerendered; dynamic server harnesses are intentionally omitted.
adapter: adapter({ strict: false }),
files: {
routes: 'src/web/routes'
},
alias: {
// Specific subpaths must come before the parent alias — Vite's
// alias resolver matches by prefix, so '$active-app' would
// shadow '$active-app/services' if listed first.
'$active-app/services': 'src/arts/active-app/service-factories',
'$active-app/presets': 'src/arts/active-app/presets',
'$active-app': 'src/arts/active-app',
$adom: 'src/arts/adom',
$auth: 'src/arts/auth',
$bus: 'src/arts/bus',
$cache: 'src/arts/cache',
$connection: 'src/arts/connection',
$frontend: 'src/arts/frontend',
$libs: 'src/libs',
$locale: 'src/libs/locale',
$reactive: 'src/libs/reactive',
$format: 'src/arts/format',
$http: 'src/arts/http',
$lang: 'src/arts/lang',
$logger: 'src/arts/logger',
$orca: 'src/arts/orca',
$dating: 'demos/dating/web',
$perm: 'src/arts/perm',
$prefs: 'src/arts/prefs',
$session: 'src/arts/session',
$sium: 'src/arts/sium',
$storage: 'src/arts/storage',
$svrs: 'src/svrs',
$timer: 'src/arts/timer',
// suix layers — uix is being re-homed under src/suix/ during
// the rewrite. Each layer gets its own short alias; no
// umbrella `$uix` because `$adom` already lives at
// `src/arts/adom` and we don't want two paths to the same
// destination. suix code imports `$adom` directly when it
// needs the reactive DOM service.
$eidos: 'src/suix/eidos',
$morfo: 'src/suix/morfo',
$sema: 'src/suix/sema',
$soma: 'src/suix/soma'
}
}
};
export default config;

Powered by TurnKey Linux.