Commit cf643e8 1 parent 266263d commit cf643e8 Copy full SHA for cf643e8
File tree 3 files changed +1199
-128
lines changed
3 files changed +1199
-128
lines changed Original file line number Diff line number Diff line change
1
+ import isChromatic from 'chromatic/isChromatic'
1
2
import type { StorybookConfig } from '@storybook/react-vite'
2
3
import type { } from 'storybook-formik/dist/esm/register'
3
4
const config : StorybookConfig = {
@@ -13,18 +14,20 @@ const config: StorybookConfig = {
13
14
VITE_BACKEND_API : 'http://localhost:8080/api/v1' ,
14
15
} ,
15
16
addons : [
16
- 'addon-screen-reader' ,
17
+ // One of your manager-entries failed: http://localhost:6006/sb-addons/addon-screen-reader-12/register-bundle.js ReferenceError: regeneratorRuntime is not defined
18
+ // 'addon-screen-reader', // does not work, cause problems in chromatic
17
19
'storybook-addon-react-router-v6' ,
18
20
'@storybook/addon-links' ,
19
21
'@storybook/addon-essentials' ,
20
22
'@storybook/addon-a11y' ,
21
23
'@storybook/addon-interactions' ,
22
24
'storybook-dark-mode' ,
23
- 'storybook-formik' , // todo: this doesn't work
24
25
] ,
25
26
framework : {
26
27
name : '@storybook/react-vite' ,
27
- options : { } ,
28
+ options : {
29
+ builder : { } ,
30
+ } ,
28
31
} ,
29
32
docs : {
30
33
autodocs : 'tag' ,
Original file line number Diff line number Diff line change 36
36
},
37
37
"devDependencies" : {
38
38
"@babel/plugin-transform-react-jsx" : " ^7.22.3" ,
39
+ "@babel/plugin-transform-runtime" : " ^7.23.2" ,
40
+ "@babel/runtime" : " ^7.23.2" ,
39
41
"@emotion/babel-plugin-jsx-pragmatic" : " ^0.2.1" ,
40
42
"@faker-js/faker" : " ^8.0.2" ,
41
43
"@storybook/addon-a11y" : " ^7.0.26" ,
63
65
"addon-screen-reader" : " ^1.8.6" ,
64
66
"autoprefixer" : " ^10.4.14" ,
65
67
"axe-playwright" : " ^1.2.3" ,
68
+ "babel-core" : " ^6.26.3" ,
69
+ "babel-loader" : " ^9.1.3" ,
66
70
"babel-plugin-macros" : " ^3.1.0" ,
71
+ "babel-polyfill" : " ^6.26.0" ,
72
+ "babel-preset-es2015" : " ^6.24.1" ,
73
+ "babel-preset-stage-0" : " ^6.24.1" ,
67
74
"chromatic" : " ^6.19.8" ,
68
75
"concurrently" : " ^8.2.0" ,
69
76
"eslint-config-custom" : " workspace:*" ,
You can’t perform that action at this time.
0 commit comments