From f4250cf2019a520d7782fa0820880975b05caba6 Mon Sep 17 00:00:00 2001 From: MUI bot <2109932+Janpot@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:32:46 +0100 Subject: [PATCH] Update babel.config.js --- babel.config.js | 9 --------- 1 file changed, 9 deletions(-) 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', {