Skip to content

Commit

Permalink
Add mui-core to the default optimizePackageImports list (#55554)
Browse files Browse the repository at this point in the history
Feedback from #48748 (comment).

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.
  • Loading branch information
shuding committed Sep 19, 2023
1 parent caa9083 commit f630cb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/src/server/config.ts
Expand Up @@ -724,6 +724,7 @@ function assignDefaults(
'react-use',
'@material-ui/icons',
'@tabler/icons-react',
'mui-core',
]),
]

Expand Down

0 comments on commit f630cb8

Please sign in to comment.