Skip to content

Commit 706b5cb

Browse files
fix: solve a storybook warning
1 parent b910795 commit 706b5cb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.babelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"presets": ["next/babel"]
2+
"presets": ["next/babel"],
3+
"plugins": [
4+
["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
5+
]
36
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"@babel/core": "^7.12.10",
36+
"@babel/plugin-proposal-private-property-in-object": "^7.14.5",
3637
"@storybook/addon-essentials": "^6.2.9",
3738
"@storybook/addon-postcss": "^2.0.0",
3839
"@storybook/builder-webpack5": "^6.2.9",

0 commit comments

Comments
 (0)