Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions babel.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ export default function getBabelConfig(api) {
if (removePropTypesPlugin) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the ignoreFilenames is removed, then I believe the whole if can go since unsafe-wrap is the default

removePropTypesPlugin[1] ??= {};
removePropTypesPlugin[1].mode = 'unsafe-wrap';
removePropTypesPlugin[1].ignoreFilenames ??= [];
removePropTypesPlugin[1].ignoreFilenames.push('DataGrid.tsx', 'DataGridPro.tsx');
}
const displayNamePlugin = baseConfig.plugins.find(
(p) => p[2] === '@mui/internal-babel-plugin-display-name',
Expand Down
Loading