springernature / frontend-playbook

The Frontend Playbook
Other
465 stars 46 forks source link

Some words about Transpiling for client side JS #382

Closed morgaan closed 3 years ago

tulipdexter commented 3 years ago

I wonder if, instead of calling out for...of loops as their own section, it's worth having a section like "Be careful when transpiling" or something similar. The reason to not use for...of loops if you use IE is because the transpiled size is huge 🙈 and I think that applies to more than just for...of.

Screenshot 2021-06-01 at 09 05 51

morgaan commented 3 years ago

@tulipdexter This makes perfect sense. I honestly had no idea where to put it, so I went for the Loops section. Let me try to find a spot for that section and stick this into there rather. They may be other stuffs we may stick in there.

morgaan commented 3 years ago

@tulipdexter I gave it a try. Would you mind have another look? Feel free to fix my non native speaker english :p

sonniesedge commented 3 years ago

I have put a lot of suggestions in there that make it look like I don't like what @morgaan wrote WHEN IN FACT THIS IS NOT TRUE I'M JUST AN ANNOYING PEDANT.

morgaan commented 3 years ago

I incorporated your suggestions dear @sonniesedge and @jpw. Thank you to you two for that!