Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Fix babel config for storybook upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkertrain committed Jan 26, 2021
1 parent b0a053d commit a3deb53
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .storybook/.babelrc
Expand Up @@ -3,20 +3,21 @@
[
"@babel/preset-env",
{
"loose": true,
"shippedProposals": true,
"targets": {
"ie": 11,
"edge": 14,
"firefox": 45,
"chrome": 49,
"safari": 10,
"node": "6.11"
"node": "12.16.3"
}
}
],
"@babel/react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
[
"inline-react-svg",
{
Expand Down
4 changes: 2 additions & 2 deletions babel.config.js
@@ -1,7 +1,6 @@
module.exports = api => {
const isTest = api.env('test')
const plugins = [
'@babel/plugin-proposal-class-properties',
[
'prismjs',
{
Expand Down Expand Up @@ -47,9 +46,10 @@ module.exports = api => {
firefox: '60',
chrome: '65',
safari: '10',
node: '8',
node: '12.16.3',
},
loose: true,
shippedProposals: true,
},
],
'@babel/react',
Expand Down
8 changes: 6 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Expand Up @@ -108,7 +108,6 @@
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/node": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.4.3",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
Expand Down

0 comments on commit a3deb53

Please sign in to comment.