[material-ui] Minimizing bundle using 'babel-plugin-import' results in 'Cant Resolve...' errors #42326
Labels
package: material-ui
Specific to @mui/material
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: https://codesandbox.io/p/devbox/282r7g (Go to "Development" tab).
Steps:
ThemeProvider
like this:import { ThemeProvider } from '@mui/material';
.ThemeProvider
somewhere, and start your app.Current behavior
An error is thrown:
Expected behavior
An error will not be thrown
Context
This error occurs for
ThemeProvider
,styled
,useTheme
, and several other imports I believeYour environment
Search keywords: bundle-size
The text was updated successfully, but these errors were encountered: