The MUI documentation suggests using a modern folder with components designed for modern browsers. Is there a way to configure webpack to automatically rewrite imports like
import {Box} from "@mui/material"
to use the modern version without manually changing each import statement to include "/modern/" in the path? Additionally, how can we create a separate build optimized for modern browsers to serve them specifically?
I apologize for the specific 'how do I' question, as searching for information on MUI and modern features didn't yield helpful results.