Skip to content

Commit

Permalink
Update babel.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Feb 5, 2025
1 parent c77157b commit f4250cf
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -198,7 +190,6 @@ module.exports = function getBabelConfig(api) {
},
benchmark: {
plugins: [
...productionPlugins,
[
'babel-plugin-module-resolver',
{
Expand Down

0 comments on commit f4250cf

Please sign in to comment.