solidjs / vite-plugin-solid

A simple integration to run solid-js with vite
440 stars 51 forks source link

Not working with happy-dom #131

Open ivanafanasyeu opened 10 months ago

ivanafanasyeu commented 10 months ago

This one is not working, requires to install jsdom. If I remove solidPlugin, starts working with no issues

/// <reference types="vitest" />

import { getViteConfig } from 'astro/config';
import solidPlugin from 'vite-plugin-solid';

export default getViteConfig({
    test: {
        globals: true,
        environment: 'happy-dom',
        include: ['src/**/*.test.{js,ts}'],
        testTransformMode: { web: ['/.[jt]sx?$/'] },
        css: true
    },
    build: {
        target: 'esnext'
    },

    plugins: [solidPlugin()]
});