Skip to content

Commit

Permalink
feat!: update babel for react jsx transform
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamwasp authored Dec 13, 2022
1 parent 8f5d05d commit a8a589c
Show file tree
Hide file tree
Showing 4 changed files with 502 additions and 1,909 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"devDependencies": {
"@babel/cli": "7.13.10",
"@babel/core": "7.13.10",
"@babel/core": "7.19.6",
"@babel/preset-typescript": "^7.13.0",
"@codecademy/webpack-config": "^6.0.0",
"@emotion/babel-plugin": "^11.3.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/babel-preset-codecademy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ module.exports = (api, { type = PACKAGE_LIBRARY } = {}) => {
corejs: 2,
},
],
require('@babel/preset-react').default,
[
require('@babel/preset-react').default,
{
runtime: 'automatic',
},
],
].filter(Boolean),
plugins: [
require('@babel/plugin-transform-destructuring').default,
Expand Down
6 changes: 3 additions & 3 deletions packages/babel-preset-codecademy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"license": "MIT",
"peerDependencies": {
"@babel/core": "^7.12.3",
"@babel/core": "^7.19.6",
"@babel/runtime": "^7.12.1"
},
"dependencies": {
Expand All @@ -33,12 +33,12 @@
"@babel/plugin-transform-destructuring": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.1",
"@babel/preset-react": "^7.18.6",
"babel-plugin-react-anonymous-display-name": "0.0.1",
"babel-plugin-transform-dynamic-import": "^2.1.0"
},
"devDependencies": {
"@babel/cli": "^7.13.10",
"@babel/core": "^7.13.10"
"@babel/core": "^7.19.6"
}
}
Loading

0 comments on commit a8a589c

Please sign in to comment.