under-falling-skies/vite.config.js

21 lines
484 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
2023-01-13 17:43:06 +00:00
console.log(import.meta);
2023-01-11 22:25:39 +00:00
/** @type {import('vite').UserConfig} */
const config = {
2023-01-13 17:43:06 +00:00
plugins: [svelte()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
},
resolve: {
alias: {
$lib:
import.meta.url.replace('file://', '').replace(/[^/]+$/, '') +
'src/lib',
},
},
2023-01-11 22:25:39 +00:00
};
export default config;