under-falling-skies/vite.config.js

21 lines
416 B
JavaScript
Raw Normal View History

2023-01-11 22:25:39 +00:00
import { sveltekit } from '@sveltejs/kit/vite';
2023-01-13 17:43:06 +00:00
import { svelte } from '@sveltejs/vite-plugin-svelte';
2023-01-11 22:25:39 +00:00
/** @type {import('vite').UserConfig} */
const config = {
2023-01-14 19:32:36 +00:00
plugins: [svelte()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
environment: 'jsdom',
},
resolve: {
alias: {
$lib:
import.meta.url.replace('file://', '').replace(/[^/]+$/, '') +
'src/lib',
},
},
2023-01-11 22:25:39 +00:00
};
export default config;