fix: add compilerOptions to Svelte plugin in vitest config
The Svelte plugin was receiving an incomplete config object, causing Object.values() to fail on undefined in the hot-update plugin. Added compilerOptions.dev to provide a complete plugin configuration.
This commit is contained in:
@@ -2,7 +2,14 @@ import { defineConfig } from 'vitest/config';
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte({ hot: !process.env.VITEST })],
|
||||
plugins: [
|
||||
svelte({
|
||||
hot: !process.env.VITEST,
|
||||
compilerOptions: {
|
||||
dev: true
|
||||
}
|
||||
})
|
||||
],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
|
||||
Reference in New Issue
Block a user