You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
#8942 might be related, but there aren't many details there.
I also found some issues with a sideEffects property that might have some impact, but I am not sure if they are relevant or not here.
Describe the bug
When building an app that imports from @mui/icons-material the final bundle is not tree shaken as expected with V3. V2 works as expected.
import Home from '@mui/icons-material/Home';
is tree shaken.import { Home } from '@mui/icons-material';
is not tree shaken.npm run build
.import Home from '@mui/icons-material/Home';
instead.npm run build
.Reproduction
https://stackblitz.com/edit/vitejs-vite-fwmm5t?file=src%2FApp.tsx&terminal=dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: