Files
webstudio/vitest.config.ts
T
Bogdan Chadkin 452c50a41a refactor: upgrade vite for vitest and storybook (#5165)
Tough cookie. There is a problem with resolving react-remove-scroll,
figured it by reducing allowed amount of server conditions.
2025-04-29 14:17:42 +04:00

18 lines
345 B
TypeScript

import {
defaultClientConditions,
defaultServerConditions,
defineConfig,
} from "vite";
export default defineConfig({
// resolve webstudio condition in tests
resolve: {
conditions: ["webstudio", ...defaultClientConditions],
},
ssr: {
resolve: {
conditions: ["webstudio", ...defaultServerConditions],
},
},
});