mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(ui): fix vite 8
This commit is contained in:
committed by
Łukasz Mierzwa
parent
1d891d2fca
commit
99573da2c4
@@ -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) {
|
||||
|
||||
@@ -23,6 +23,10 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
legacy: {
|
||||
// e2e tests broke after upgrade to Vite v8, this fixes it.
|
||||
inconsistentCjsInterop: true,
|
||||
},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user