TLDR: Use for...of instead of forEach() in asynchronous code.
For legacy browsers, use for(...;...;...) or [].reduce()
To execute the promises in parallel, use Promise.all([].map(...))
| HTML 44 mins βββββββββββββββββββββ 33.9% | |
| Markdown 38 mins βββββββββββββββββββββ 29.2% | |
| CSS 37 mins βββββββββββββββββββββ 28.8% | |
| MDX 5 mins βββββββββββββββββββββ 4.3% | |
| TOML 2 mins βββββββββββββββββββββ 2.2% |
Note:
When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.
If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code: