-
Notifications
You must be signed in to change notification settings - Fork 23
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
Bump dependencies, take 2 #361
Conversation
This reverts commit 15e1ea7.
- add "prop-types" as a dependency - upgrade SVGR plugins (must now use @svgr/plugin-jsx) - simplify vite.config.ts files
@@ -78,6 +76,7 @@ | |||
"mui-one-time-password-input": "1.1.0", | |||
"plotly.js-basic-dist": "^2.24.3", | |||
"pluralize": "^8.0.0", | |||
"prop-types": "^15.8.1", |
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.
For some reason, tsup
isn't bundling/properly writing a dynamic import for the prop-types
dependency, which is imported via react-switch
(but also many other dependencies?)
This issue resolves if we include it in our dependencies.
@@ -95,7 +94,7 @@ | |||
"react-router-dom": "^5.3.4", | |||
"react-select": "^5.7.3", | |||
"react-sizeme": "^3.0.2", | |||
"react-test-renderer": "^18.2.0", | |||
"react-switch": "^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.
move from devDependencies
@@ -95,7 +94,7 @@ | |||
"react-router-dom": "^5.3.4", | |||
"react-select": "^5.7.3", | |||
"react-sizeme": "^3.0.2", | |||
"react-test-renderer": "^18.2.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.
remove from dependencies (it's already in devDependencies)
@@ -45,6 +45,7 @@ const esBuildOptions = { | |||
loadPaths: ['../../node_modules', 'node_modules'], | |||
}), | |||
svgrPlugin({ | |||
plugins: ['@svgr/plugin-jsx'], |
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.
Upgraded svgr plugins use new versions of svgr which require specifying the plugins we use. We just use the jsx
plugin.
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.
Additional changes also look ok. Thank you for tracking this down!
Re-include the changes in #354 plus