Prevent full import of @material-ui/core and @material-ui/icons in dev mode

This commit is contained in:
Eric 2020-06-24 12:01:11 -05:00 committed by Eric Schultz
parent a2b265f30c
commit 37d30c63ca

View file

@ -84,6 +84,17 @@ module.exports = function(api) {
removeImport: true,
},
],
isDevelopmentEnv && [
'babel-plugin-transform-imports',
{
'@material-ui/core': {
'preventFullImport': true
},
'@material-ui/icons': {
'preventFullImport': true
}
}
]
].filter(Boolean),
}
}