language-learning-app/frontend/svelte.config.js
wilson 13911331a3 feat: Add word-level translation panel to article page
- Add DeepL integration for word translation
- Parse article body into sentences and tokens
- Highlight active sentence and selected word
- Show translation in a sticky panel or mobile drawer
- Refactor audio timing and body parsing logic
- Enable SvelteKit remote functions and async compiler options
- Add dependencies: deepl-node, valibot
2026-03-31 07:21:20 +01:00

25 lines
464 B
JavaScript

import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),
experimental: {
remoteFunctions: true
},
alias: {
'@client': 'src/client/client.gen.ts'
}
},
compilerOptions: {
experimental: {
async: true
}
},
vitePlugin: {
dynamicCompileOptions: ({ filename }) =>
filename.includes('node_modules') ? undefined : { runes: true }
}
};
export default config;