Skip to content

Commit b7fb2a3

Browse files
committed
fix: make storybook work
1 parent f30c57e commit b7fb2a3

13 files changed

+11
-9
lines changed

.storybook/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ const path = require('path');
22
const { mergeConfig } = require('vite');
33

44
module.exports = {
5-
core: {
6-
builder: '@storybook/builder-vite',
7-
},
85
viteFinal(config) {
96
return mergeConfig(config, {
107
resolve: {
@@ -20,4 +17,9 @@ module.exports = {
2017
'@storybook/addon-controls',
2118
'@storybook/addon-actions',
2219
],
20+
framework: {
21+
name: '@storybook/react-vite',
22+
options: {},
23+
},
24+
docs: {},
2325
};

.storybook/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/addons';
1+
import { addons } from '@storybook/manager-api';
22

33
import { theme } from './theme';
44

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"@storybook/react": "^8.4.7",
7777
"@storybook/react-vite": "^8.4.7",
7878
"@storybook/theming": "^8.4.7",
79-
"@swc/core": "^1.3.17",
80-
"@swc/helpers": "^0.5.0",
79+
"@swc/core": "^1.10.1",
80+
"@swc/helpers": "^0.5.15",
8181
"@testing-library/dom": "^10.4.0",
8282
"@testing-library/jest-dom": "^6.6.3",
8383
"@testing-library/react": "^16.1.0",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)