Having read that React takes care of setting up Babel and webpack for me, I used the new (ES2020 or ES2021?) String.prototype.replaceAll() function in my code, assuming it would be polyfilled by Babel for unsupported browsers, but it isn't.
Is there extra config I can add to make Babel do this polyfill? Adding extra config seems to be against the philosophy of create-react-app.