diff --git a/pkg/interface/babel.config.js b/pkg/interface/babel.config.js index c495a101c6..5c221c81b2 100644 --- a/pkg/interface/babel.config.js +++ b/pkg/interface/babel.config.js @@ -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' ] };