diff --git a/babel.config.js b/babel.config.js index b585f6ff..534b97f3 100644 --- a/babel.config.js +++ b/babel.config.js @@ -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), } }