Skip to content

Commit 4fcf4f5

Browse files
authored
Merge pull request #49 from bartstc/chore/vite-8-upgrade
chore(dev-deps): update vite to v8
2 parents 507c680 + fbf370c commit 4fcf4f5

4 files changed

Lines changed: 834 additions & 459 deletions

File tree

.storybook/main.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { StorybookConfig } from "@storybook/react-vite";
2-
import * as tsconfigPaths from "vite-tsconfig-paths";
32

43
const 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
},

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
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",
@@ -88,10 +88,9 @@
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": [

0 commit comments

Comments
 (0)