We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904b25b commit ce00b4bCopy full SHA for ce00b4b
.changeset/little-mice-mate.md
@@ -0,0 +1,5 @@
1
+---
2
+'vite-plugin-solid': patch
3
4
+
5
+Fix server-side testing with vitest/ssr
src/index.ts
@@ -298,7 +298,7 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
298
config.resolve.conditions = [
299
'solid',
300
...(replaceDev ? ['development'] : []),
301
- ...(isTestMode && !opts.isSsrTargetWebworker ? ['browser'] : []),
+ ...(isTestMode && !opts.isSsrTargetWebworker && !options.ssr ? ['browser'] : []),
302
...config.resolve.conditions,
303
];
304
},
0 commit comments