mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-28 16:12:17 +01:00
fd9d61a7b7
--------- Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
23 lines
484 B
JavaScript
23 lines
484 B
JavaScript
import { defineConfig, configDefaults } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
{
|
|
name: 'resolve-svelte',
|
|
resolveId(id) {
|
|
if (id === 'svelte') {
|
|
return `${__dirname}/src/runtime/index.js`;
|
|
}
|
|
if (id.startsWith('svelte/')) {
|
|
return id.replace(/^svelte(.*)\/?$/, `${__dirname}/src/runtime/$1/index.js`);
|
|
}
|
|
}
|
|
}
|
|
],
|
|
test: {
|
|
dir: 'test',
|
|
reporters: ['dot'],
|
|
exclude: [...configDefaults.exclude, '**/samples/**']
|
|
}
|
|
});
|