Seth Madison
07/06/2023, 6:14 AMtoString()
methods are huge and do not minify or compress well at all. Tree shaking can’t get rid of them because they’re member functions. It would be awesome if there were a compiler flag to disable toString()
generation for production builds. I realize some code might break, but I think that by-and-large folks use the nice toString()
methods for debugging and don’t need them in prod bundles. Anybody have any other clever ideas?turansky
07/06/2023, 9:14 AMagrosner
07/06/2023, 10:42 PMagrosner
07/06/2023, 10:43 PMSeth Madison
07/07/2023, 3:05 AM