Skip to content

Commit 1be2732

Browse files
authored
chore: fix Storybook and Babel config (#610)
1 parent 654bf1b commit 1be2732

File tree

3 files changed

+1321
-1166
lines changed

3 files changed

+1321
-1166
lines changed

.storybook/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
module.exports = {
22
stories: ['../stories/**/*.stories.tsx'],
33
addons: ['@storybook/addon-knobs', '@storybook/addon-storysource'],
4+
babel: async options => ({
5+
...options,
6+
plugins: options.plugins.concat('@babel/plugin-proposal-class-properties'),
7+
}),
48
};

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@
4141
},
4242
"devDependencies": {
4343
"@babel/core": "7.13.10",
44-
"@storybook/addon-knobs": "6.2.9",
45-
"@storybook/addon-storysource": "6.2.9",
46-
"@storybook/addons": "6.2.9",
47-
"@storybook/react": "6.2.9",
44+
"@babel/plugin-proposal-class-properties": "7.13.0",
45+
"@storybook/addon-knobs": "6.3.0",
46+
"@storybook/addon-storysource": "6.3.1",
47+
"@storybook/addons": "6.3.1",
48+
"@storybook/react": "6.3.1",
4849
"@testing-library/jest-dom": "5.12.0",
4950
"@testing-library/react": "11.2.7",
5051
"@testing-library/user-event": "13.1.9",
@@ -77,6 +78,7 @@
7778
"semantic-ui-react": ">=0.75.0"
7879
},
7980
"resolutions": {
81+
"@babel/plugin-proposal-class-properties": "7.13.0",
8082
"handlebars": "4.5.0"
8183
},
8284
"jest": {

0 commit comments

Comments
 (0)