mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
Tough cookie. There is a problem with resolving react-remove-scroll, figured it by reducing allowed amount of server conditions.
18 lines
345 B
TypeScript
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],
|
|
},
|
|
},
|
|
});
|