I'm using node.js, next.js and @mui with type: "module"
in package.json
import Add from "@mui/icons-material/Add";
console.log(Add)
{
default: {
'$$typeof': Symbol(react.memo),
type: { '$$typeof': Symbol(react.forward_ref), render: [Function] },
compare: null
}
}
is it possible to automatically return Add.default
without having to remove type="module"
in package.json
?
if i use import { Add } from "@mui/icons-material"
it works as it should, however it loads all icons which in development leads to big performance issues