-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade babel/typescript to support latest features #1172
Conversation
Preview branch generated at https://babel-upgrade.d1gko6en628vir.amplifyapp.com |
@@ -128,7 +127,7 @@ | |||
"style-loader": "^0.19.0", | |||
"terser-webpack-plugin": "^5.3.6", | |||
"ts-node": "^10.9.1", | |||
"typescript": "^3.7.5", | |||
"typescript": "~5.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier yells at you if it's 5.1.0 or greater 🤷
@@ -11,7 +11,6 @@ | |||
} | |||
], | |||
"transform-export-extensions", | |||
"@babel/plugin-proposal-class-properties", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now included as part of preset-env
@@ -34,18 +34,15 @@ | |||
"tslib": "^2.4.0" | |||
}, | |||
"devDependencies": { | |||
"@babel/cli": "^7.8.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
@@ -115,7 +115,6 @@ IconButton.propTypes = { | |||
as: PropTypes.elementType, | |||
// @ts-expect-error | |||
icon: PropTypes.string.isRequired, | |||
// @ts-expect-error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apparently none of these error anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The others still error?
@@ -23,7 +23,8 @@ | |||
"release": "./scripts/release.sh" | |||
}, | |||
"prettier": { | |||
"singleQuote": true | |||
"singleQuote": true, | |||
"trailingComma": "none" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really care that much, but this keeps the existing behavior that was present before the upgrade to keep things consistent
"@babel/plugin-proposal-export-default-from": "^7.2.0", | ||
"@babel/preset-env": "^7.8.4", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/preset-stage-0": "^7.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really needed anymore
Looks good to me! |
Preview branch generated at https://babel-upgrade.d1gko6en628vir.amplifyapp.com |
General cleanup of typescript/babel dependencies. Removed a few unused babel plugins, but there were some issues with
import type...
on #1167 that I was trying to resolve here separately.