diff --git a/babel.config.js b/babel.config.js index deba3ab0efb87b..56fbd2289aa105 100644 --- a/babel.config.js +++ b/babel.config.js @@ -17,11 +17,6 @@ function resolveAliasPath(relativeToBabelConf) { return `./${resolvedPath.replace('\\', '/')}`; } -/** @type {babel.PluginItem[]} */ -const productionPlugins = [ - ['babel-plugin-react-remove-properties', { properties: ['data-mui-test'] }], -]; - /** @type {babel.ConfigFunction} */ module.exports = function getBabelConfig(api) { const useESModules = api.env(['regressions', 'modern', 'stable']); @@ -127,9 +122,6 @@ module.exports = function getBabelConfig(api) { : []), ]; - if (process.env.NODE_ENV === 'production') { - plugins.push(...productionPlugins); - } if (process.env.NODE_ENV === 'test') { plugins.push([ 'babel-plugin-module-resolver', @@ -198,7 +190,6 @@ module.exports = function getBabelConfig(api) { }, benchmark: { plugins: [ - ...productionPlugins, [ 'babel-plugin-module-resolver', {