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

[example] Update vite example #300

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

brijeshb42
Copy link
Contributor

This updates the template to the latest Vite starter. It also fixes an issue with Pigment initialization in dev mode by explicitly installing prop-types and react-is and adding it to the optimizeDeps' include list. This won't be an issue when we don't use prop-types in the stable v1 release.

Fixes #291

@brijeshb42 brijeshb42 requested a review from mnajdova November 5, 2024 08:12
@brijeshb42 brijeshb42 added the examples Relating to /examples label Nov 5, 2024
@brijeshb42 brijeshb42 requested a review from siriwatknp November 5, 2024 08:13
This updates the template to the latest vitejs starter. It also fixes an
issue with Pigment initialization in dev mode by explicitly installing
prop-types and react-is and adding it to the optimizeDeps' `include`
list. This won't be an issue when we don't use prop-types in the stable
v1 release.
@brijeshb42 brijeshb42 merged commit f632cd9 into mui:master Nov 5, 2024
12 checks passed
@brijeshb42 brijeshb42 deleted the vite-example-update branch November 5, 2024 09:38
"preview": "vite preview"
},
"dependencies": {
"@pigment-css/react": "latest",
"prop-types": "latest",
Copy link
Member

@oliviertassinari oliviertassinari Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need to be a dependency? As a developer who clones a TypeScript examples, the first thing I would likely do is try to remove this line.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work regression A bug, but worse vite labels Nov 5, 2024
brijeshb42 pushed a commit to brijeshb42/material-ui that referenced this pull request Nov 21, 2024
brijeshb42 pushed a commit to brijeshb42/material-ui that referenced this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work examples Relating to /examples regression A bug, but worse vite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vite + TypeScript + @pigment-css/vite-plugin requires transformed @mui/material as dependency to function
3 participants