fix(ui): fix vite 8

This commit is contained in:
Lukasz Mierzwa
2026-03-20 16:36:30 +00:00
committed by Łukasz Mierzwa
parent 1d891d2fca
commit 99573da2c4
2 changed files with 5 additions and 1 deletions

View File

@@ -668,7 +668,7 @@ const StoryRenderer = ({ storyFn }: { storyFn: () => React.ReactNode }) => (
);
const VisualTestApp = () => {
const storyName = window.location.hash.replace("#", "") || "";
const storyName = window.location.hash.replace("#", "").split("?")[0] || "";
const storyFn = stories[storyName];
if (!storyFn) {

View File

@@ -23,6 +23,10 @@ export default defineConfig({
},
},
},
legacy: {
// e2e tests broke after upgrade to Vite v8, this fixes it.
inconsistentCjsInterop: true,
},
build: {
sourcemap: true,
},