- 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
25 lines
464 B
JavaScript
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;
|