const loose = true

module.exports = {
  presets: [
  	['@babel/env', {
  		loose,
  		modules: false,
  	}],
  	'@babel/react',
  ],
  plugins: [
  	['@babel/proposal-class-properties', { loose }],
  	'@babel/proposal-object-rest-spread',
    ['transform-react-remove-prop-types', { mode: 'unsafe-wrap' }],
  ]
}

const loose = true

module.exports = {
  presets: [
  	['@babel/env', {
  		loose,
  		modules: false,
  	}],
  	'@babel/react',
  ],
  plugins: [
  	['@babel/proposal-class-properties', { loose }],
  	['@babel/proposal-object-rest-spread', { loose }],
    ['transform-react-remove-prop-types', { mode: 'unsafe-wrap' }],
  ]
}

Use loose mode for proposal-object-rest-spread