Skip to content

Commit ef905c3

Browse files
Add experimental support for SolidStart to Vite plugin (#825)
1 parent ce12171 commit ef905c3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/chilled-pets-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/vite-plugin': minor
3+
---
4+
5+
Add experimental support for [SolidStart](https://github.com/solidjs/solid-start)

packages/vite-plugin/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ export function vanillaExtractPlugin({
6868
postCssConfig = await resolvePostcssConfig(config);
6969
}
7070

71-
if (config.plugins.some((p) => p.name === 'astro:build')) {
71+
if (
72+
config.plugins.some((plugin) =>
73+
['astro:build', 'solid-start-server'].includes(plugin.name),
74+
)
75+
) {
7276
forceEmitCssInSsrBuild = true;
7377
}
7478
},

0 commit comments

Comments
 (0)