Prevent full import of @material-ui/core and @material-ui/icons in dev mode
This commit is contained in:
parent
a2b265f30c
commit
37d30c63ca
1 changed files with 11 additions and 0 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue