Skip to content

Commit b30af64

Browse files
committed
Update changelog for 5.13.0
1 parent f3cf747 commit b30af64

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,51 @@ This release changed the way react-admin exports its modules to be fully compati
4343

4444
See https://marmelab.com/react-admin/UnitTesting.html#working-with-jest for more details.
4545

46+
### Webpack configuration update
47+
48+
If you use MUI v5 or MUI v6, you may need to update your Webpack config by adding the following rules:
49+
50+
```js
51+
{
52+
// Your config
53+
modules: {
54+
rules: [
55+
// Your other rules
56+
{
57+
test: /\.m?js/,
58+
type: "javascript/auto",
59+
},
60+
{
61+
test: /\.m?js/,
62+
resolve: {
63+
fullySpecified: false,
64+
},
65+
},
66+
]
67+
}
68+
}
69+
```
70+
71+
### Vite configuration update
72+
73+
If you use MUI v5, you may have to add the following alias:
74+
75+
```js
76+
export default defineConfig(({ mode }) => ({
77+
// Your config
78+
resolve: {
79+
// Your resolve config
80+
alias: [
81+
// Your other aliases
82+
{
83+
find: /^@mui\/icons-material\/(.*)/,
84+
replacement: "@mui/icons-material/esm/$1",
85+
},
86+
]
87+
}
88+
});
89+
```
90+
4691
## 5.12.3
4792

4893
* Fix optimistic query invalidation and avoid invalidating the same query twice ([#11017](https://github.com/marmelab/react-admin/pull/11017)) ([slax57](https://github.com/slax57))

0 commit comments

Comments
 (0)