-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
24 lines (23 loc) · 922 Bytes
/
svelte.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import path from 'path';
import { fileURLToPath } from 'url';
import { dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess({ enableSourcemap: true }),
kit: {
alias: {
shared: path.resolve(__dirname, './src/util/src/'),
'@shared': path.resolve('./src/shared/'),
'@lexical/react': path.resolve(__dirname, 'src/lib/'),
react: path.resolve(__dirname, 'src/react.svelte'),
'@theme': path.resolve(__dirname, './src/themes/'),
'@ui': path.resolve(__dirname, './src/playground/ui/'),
'@nodes': path.resolve(__dirname, './src/playground/nodes/'),
'@plugins': path.resolve(__dirname, './src/playground/plugins/')
}
}
};