Skip to content
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

Merged
merged 2 commits into from
Jul 12, 2023
Merged

Conversation

nickgros
Copy link
Collaborator

Re-include the changes in #354 plus

  • move react-switch to "dependencies"
  • add "prop-types" as a dependency
  • upgrade SVGR plugins (must now use @svgr/plugin-jsx)
  • simplify vite.config.ts files

nickgros added 2 commits July 11, 2023 14:10
- 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",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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",
Copy link
Collaborator Author

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'],
Copy link
Collaborator Author

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.

Copy link
Member

@jay-hodgson jay-hodgson left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants