]> git.r.bdr.sh - rbdr/forum/blob - svelte.config.cjs
Add tests for first batch of components
[rbdr/forum] / svelte.config.cjs
1 const { resolve } = require('path');
2 const node = require('@sveltejs/adapter-node');
3 const pkg = require('./package.json');
4
5 /** @type {import('@sveltejs/kit').Config} */
6 module.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 };