Unverified Commit f630cb8e authored by Shu Ding's avatar Shu Ding Committed by GitHub

Add `mui-core` to the default `optimizePackageImports` list (#55554)

Feedback from https://github.com/vercel/next.js/issues/48748#issuecomment-1714292279.

As per my testing, an App Router route of

```tsx
'use client'

import { Button } from 'mui-core'

export default function Page() {
  return <Button>Hi</Button>
}
```

was improved from `2.4s (1221 modules)` to `1458ms (649 modules)` for the local dev.
parent caa90832
...@@ -724,6 +724,7 @@ function assignDefaults( ...@@ -724,6 +724,7 @@ function assignDefaults(
'react-use', 'react-use',
'@material-ui/icons', '@material-ui/icons',
'@tabler/icons-react', '@tabler/icons-react',
'mui-core',
]), ]),
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment