Skip to content

Commit

Permalink
fix(.babelrc): add preset-react
Browse files Browse the repository at this point in the history
Support React 17 transform
  • Loading branch information
schettn authored Aug 31, 2021
1 parent 17d1298 commit 36a0f2c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/my-gatsby-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@chakra-ui/icons": "^1.0.15",
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@snek-at/jaen": "2.0.0-beta.5",
"@snek-at/jaen-pages": "2.0.0-beta.5",
"@snek-at/jaen": "2.0.0-beta.6",
"@snek-at/jaen-pages": "2.0.0-beta.6",
"gatsby": "^3.11.1",
"gatsby-plugin-emotion": "^6.11.0",
"react": "^17.0.1",
Expand Down
10 changes: 9 additions & 1 deletion packages/jaen-pages/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"presets": ["babel-preset-gatsby-package"]
"presets": [
"babel-preset-gatsby-package",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
]
}
2 changes: 1 addition & 1 deletion packages/jaen-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@react-icons/all-files": "^4.1.0",
"@reduxjs/toolkit": "^1.6.1",
"@snek-at/gatsby-plugin-chakra-ui": "1.0.0-beta.4",
"@snek-at/jaen": "2.0.0-beta.5",
"@snek-at/jaen": "2.0.0-beta.6",
"@snek-at/jaen-shared-ui": "2.0.0-beta.3",
"@snek-at/snek-finder": "^1.0.0-beta.9",
"deepmerge": "^4.2.2",
Expand Down
10 changes: 9 additions & 1 deletion packages/jaen/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"presets": ["babel-preset-gatsby-package"]
"presets": [
"babel-preset-gatsby-package",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
]
}

0 comments on commit 36a0f2c

Please sign in to comment.