File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { StorybookConfig } from "@storybook/react-vite" ;
2- import * as tsconfigPaths from "vite-tsconfig-paths" ;
32
43const config : StorybookConfig = {
54 stories : [ "../src/**/*.stories.@(js|jsx|ts|tsx)" ] ,
@@ -16,16 +15,6 @@ const config: StorybookConfig = {
1615 options : { } ,
1716 } ,
1817
19- viteFinal ( config ) {
20- return {
21- ...config ,
22- // Ensure that the vite-tsconfig-paths plugin is included in the Storybook config as well.
23- // This plugin is necessary for resolving TypeScript path mappings, which allows the
24- // coverage addon to instrument the code correctly.
25- plugins : [ ...( config . plugins ?? [ ] ) , tsconfigPaths . default ( ) ] ,
26- } ;
27- } ,
28-
2918 typescript : {
3019 reactDocgen : "react-docgen-typescript" ,
3120 } ,
Original file line number Diff line number Diff line change 6262 "@types/react" : " 19.2.8" ,
6363 "@types/react-dom" : " 19.2.3" ,
6464 "@types/testing-library__jest-dom" : " 5.14.9" ,
65- "@vitejs/plugin-react-swc " : " 4.2.2 " ,
66- "@vitest/browser-playwright" : " 4.0.16 " ,
67- "@vitest/coverage-istanbul" : " 4.0.16 " ,
65+ "@vitejs/plugin-react" : " 6.0.1 " ,
66+ "@vitest/browser-playwright" : " 4.1.3 " ,
67+ "@vitest/coverage-istanbul" : " 4.1.3 " ,
6868 "dotenv" : " 17.2.3" ,
6969 "eslint" : " 9.39.2" ,
7070 "eslint-config-prettier" : " 10.1.8" ,
8888 "storybook-addon-remix-react-router" : " 6.0.0" ,
8989 "typescript" : " 5.9.3" ,
9090 "typescript-eslint" : " 8.52.0" ,
91- "vite" : " 7.3.1 " ,
91+ "vite" : " 8.0.8 " ,
9292 "vite-plugin-checker" : " 0.12.0" ,
93- "vite-tsconfig-paths" : " 6.0.4" ,
94- "vitest" : " 4.0.16"
93+ "vitest" : " 4.1.3"
9594 },
9695 "browserslist" : {
9796 "production" : [
You can’t perform that action at this time.
0 commit comments