Skip to content

Commit

Permalink
[examples] Fix Pigment CSS with Vite
Browse files Browse the repository at this point in the history
Originally fixed here mui/pigment-css#300
  • Loading branch information
Brijesh Bittu committed Nov 21, 2024
1 parent 4bed60a commit 80ea4f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/examples/material-ui-preact/config
/examples/material-ui-preact/scripts
/examples/material-ui-nextjs/src
/examples/material-ui-pigment-css-vite-ts/src
/packages/mui-codemod/lib
/packages/mui-codemod/src/*/*.test/*
/packages/mui-codemod/src/**/test-cases/*
Expand Down
1 change: 1 addition & 0 deletions examples/material-ui-pigment-css-vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@mui/material": "latest",
"@mui/material-pigment-css": "latest",
"prop-types": "latest",
"react": "latest",
"react-dom": "latest"
},
Expand Down
1 change: 0 additions & 1 deletion examples/material-ui-pigment-css-vite-ts/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from 'react';
import DefaultPropsProvider from '@mui/material/DefaultPropsProvider';
import CssBaseline from '@mui/material/CssBaseline';
import Container from '@mui/material-pigment-css/Container';
Expand Down
3 changes: 3 additions & 0 deletions examples/material-ui-pigment-css-vite-ts/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ const pigmentConfig = {
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), pigment(pigmentConfig)],
optimizeDeps: {
include: ['react-is', 'prop-types'],
},
});

0 comments on commit 80ea4f3

Please sign in to comment.