Skip to content

Commit

Permalink
Upgrade to Babel 7 (rjsf-team#1322)
Browse files Browse the repository at this point in the history
- Remove deprecated `babel-plugin-react-transform` with `@babel/plugin-transform-react-jsx`
- Update a few files with default exports as they were throwing warnings while running `dev`
  • Loading branch information
ankurkaushal authored and epicfaace committed Jun 17, 2019
1 parent c1da820 commit 7ed717a
Show file tree
Hide file tree
Showing 7 changed files with 3,349 additions and 1,682 deletions.
24 changes: 13 additions & 11 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"presets": ["react", "env"],
"presets": [
"@babel/preset-react",
"@babel/preset-env"
],
"plugins": [
"transform-object-rest-spread",
"transform-class-properties",
"transform-runtime"
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties",
[
"@babel/plugin-transform-runtime",
{
"corejs": 2
}
]
],
"env": {
"development": {
"plugins": [
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}]
"@babel/plugin-transform-react-jsx"
]
}
}
Expand Down
Loading

0 comments on commit 7ed717a

Please sign in to comment.