vite-plugin-solid icon indicating copy to clipboard operation
vite-plugin-solid copied to clipboard

Not working with happy-dom

Open ivanafanasyeu opened this issue 1 year ago • 0 comments

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()]
});

ivanafanasyeu avatar Jan 06 '24 11:01 ivanafanasyeu