diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts index a981b4ccd897..bd7b19d3f543 100644 --- a/frontend/vitest.config.ts +++ b/frontend/vitest.config.ts @@ -9,8 +9,16 @@ const plugins = [ solidPlugin({ hot: false }), ]; +const tanstackSolidNoExternal: (string | RegExp)[] = [ + "@solidjs/meta", + /@tanstack\/solid-.*/, +]; + export const projects: UserWorkspaceConfig[] = [ { + ssr: { + noExternal: tanstackSolidNoExternal, + }, test: { name: { label: "unit", color: "blue" }, include: ["__tests__/**/*.spec.ts"], @@ -26,6 +34,9 @@ export const projects: UserWorkspaceConfig[] = [ plugins, }, { + ssr: { + noExternal: tanstackSolidNoExternal, + }, test: { name: { label: "jsdom", color: "yellow" }, include: ["__tests__/**/*.jsdom-spec.ts"], @@ -36,7 +47,7 @@ export const projects: UserWorkspaceConfig[] = [ }, { ssr: { - noExternal: ["@solidjs/meta"], + noExternal: tanstackSolidNoExternal, }, test: { name: { label: "jsx", color: "green" },