Make sure @material-ui/core and @material-ui/icons aren't fully imported in babel

This commit is contained in:
Eric 2020-07-15 12:44:39 -05:00 committed by Eric Schultz
parent 9e697dd340
commit 6ca0d1b9b6

View file

@ -88,9 +88,11 @@ module.exports = function(api) {
'babel-plugin-transform-imports',
{
'@material-ui/core': {
'transform': '@material-ui/core/esm/${member}',
'preventFullImport': true
},
'@material-ui/icons': {
'transform': '@material-ui/icons/esm/${member}',
'preventFullImport': true
}
}