interface: fixing babel config
@@ -5,6 +5,6 @@ module.exports = {
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-class-properties',
- 'react-refresh/babel'
+ process.env.NODE_ENV !== 'production' && 'react-refresh/babel'
]
};
