]> git.r.bdr.sh - rbdr/forum/blame - svelte.config.cjs
Add tests to second batch of components
[rbdr/forum] / svelte.config.cjs
CommitLineData
f088a659
RBR
1const { resolve } = require('path');
2const node = require('@sveltejs/adapter-node');
3const pkg = require('./package.json');
4
5/** @type {import('@sveltejs/kit').Config} */
6module.exports = {
7 kit: {
8 // By default, `npm run build` will create a standard Node app.
9 // You can create optimized builds for different platforms by
10 // specifying a different adapter
11 adapter: node(),
12
13 // hydrate the <div id="forum"> element in src/app.html
14 target: '#forum',
15
16 vite: {
17 ssr: {
18 noExternal: Object.keys(pkg.dependencies || {})
19 },
20 resolve: {
21 alias: {
22 $: resolve('src')
23 }
24 }
25 }
26 }
27};