From 60d27380f7458ec84aa4627568a54910e62db5b5 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Thu, 29 Jun 2023 05:26:04 +0200 Subject: [PATCH] fix modularizeImports with @mui/material (#51953) Fixes #51872. We were exploring in https://github.com/mui/material-ui/pull/35457 the option to move the `modularizeImports` config to our Next.js examples to fix https://github.com/mui/material-ui/issues/35450 however, we never got to complete the work. We are not yet in a position where we can apply modularizeImports to `@mui/material`. We still have folders to create to make it work. Maybe we should close https://github.com/mui/material-ui/pull/35457? Co-authored-by: JJ Kasper --- packages/next/src/server/config.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/next/src/server/config.ts b/packages/next/src/server/config.ts index 6719f8619766..f9a1e683ed80 100644 --- a/packages/next/src/server/config.ts +++ b/packages/next/src/server/config.ts @@ -693,9 +693,6 @@ function assignDefaults( '@mui/icons-material': { transform: '@mui/icons-material/{{member}}', }, - '@mui/material': { - transform: '@mui/material/{{member}}', - }, 'date-fns': { transform: 'date-fns/{{member}}', },