From 9b3029b44de0537095b743915897efedd7c3c40a Mon Sep 17 00:00:00 2001 From: Brijesh Bittu Date: Thu, 12 Dec 2024 13:49:50 +0530 Subject: [PATCH] fix: fix pigment vite integration example --- examples/material-ui-pigment-css-vite-ts/package.json | 5 ++++- examples/material-ui-pigment-css-vite-ts/vite.config.ts | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/material-ui-pigment-css-vite-ts/package.json b/examples/material-ui-pigment-css-vite-ts/package.json index fe853d4f5d03a3..afd56168b8945a 100644 --- a/examples/material-ui-pigment-css-vite-ts/package.json +++ b/examples/material-ui-pigment-css-vite-ts/package.json @@ -14,7 +14,10 @@ "@mui/material-pigment-css": "latest", "@pigment-css/react": "latest", "react": "latest", - "react-dom": "latest" + "react-dom": "latest", + "react-is": "latest", + "prop-types": "latest", + "hoist-non-react-statics": "latest" }, "devDependencies": { "@pigment-css/vite-plugin": "latest", diff --git a/examples/material-ui-pigment-css-vite-ts/vite.config.ts b/examples/material-ui-pigment-css-vite-ts/vite.config.ts index 46ea057cca64dc..72414fbe1f06e9 100644 --- a/examples/material-ui-pigment-css-vite-ts/vite.config.ts +++ b/examples/material-ui-pigment-css-vite-ts/vite.config.ts @@ -14,4 +14,7 @@ const pigmentConfig = { // https://vite.dev/config/ export default defineConfig({ plugins: [react(), pigment(pigmentConfig)], + optimizeDeps: { + include: ['prop-types', 'react-is', 'hoist-non-react-statics'], + }, });