Make sure @material-ui/core and @material-ui/icons aren't fully imported in babel
This commit is contained in:
parent
9e697dd340
commit
6ca0d1b9b6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue