You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,51 @@ This release changed the way react-admin exports its modules to be fully compati
43
43
44
44
See https://marmelab.com/react-admin/UnitTesting.html#working-with-jest for more details.
45
45
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
+
46
91
## 5.12.3
47
92
48
93
* 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