Skip to content

Commit 0d41ade

Browse files
committed
fix(storybook): removes babel loose mode warning
1 parent 38697a3 commit 0d41ade

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

babel.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
production: {
1818
presets: [['@babel/preset-env', { modules: false }]],
1919
},
20-
// For Storybook, which requires ES6 modules to be transpiled
20+
// For Storybook
2121
storybook: {
2222
presets: [
2323
[
@@ -29,6 +29,9 @@ module.exports = {
2929
},
3030
],
3131
],
32+
plugins: [
33+
['@babel/plugin-proposal-private-property-in-object', { loose: true }],
34+
],
3235
},
3336
},
3437
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,md}\"",
4444
"prettier-watch": "onchange \"**/*.{js,jsx,ts,tsx,md}\" -- prettier --write {{changed}}",
4545
"release": "standard-version",
46-
"storybook": "start-storybook -p 9009",
46+
"storybook": "NODE_ENV=storybook start-storybook -p 9009",
4747
"stylelint": "stylelint --fix \"src/**/*.css\"",
4848
"test": "NODE_ENV=test jest",
4949
"test:coverage": "NODE_ENV=test jest --coverage",

0 commit comments

Comments
 (0)