![How the new 'Top Level Await' feature works in JavaScript | by Kesk -*- | JavaScript in Plain English How the new 'Top Level Await' feature works in JavaScript | by Kesk -*- | JavaScript in Plain English](https://miro.medium.com/v2/resize:fit:1200/1*Pct48neOTBFhjsQHYYoTLw.jpeg)
How the new 'Top Level Await' feature works in JavaScript | by Kesk -*- | JavaScript in Plain English
GitHub - Menci/vite-plugin-top-level-await: Transform code to support top-level await in normal browsers for Vite.
Surma on Twitter: "Who needs top-level await when you can just export a function called `then` from your JavaScript modules? https://t.co/au7yCWsQq9" / Twitter
![Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1") · Issue #6985 · vitejs/vite · GitHub Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1") · Issue #6985 · vitejs/vite · GitHub](https://user-images.githubusercontent.com/27256120/154673263-d748ff96-9f76-4902-bffd-11be97f0ab03.png)
Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1") · Issue #6985 · vitejs/vite · GitHub
![Oliver Jumpertz on Twitter: "💛 JavaScript explained 💛 ES2022 finally introduces top-level await. This means you can use await outside of async functions, as well. Pretty helpful when you want to dynamically Oliver Jumpertz on Twitter: "💛 JavaScript explained 💛 ES2022 finally introduces top-level await. This means you can use await outside of async functions, as well. Pretty helpful when you want to dynamically](https://pbs.twimg.com/media/FT_nZqSWAAIRX6i.jpg:large)
Oliver Jumpertz on Twitter: "💛 JavaScript explained 💛 ES2022 finally introduces top-level await. This means you can use await outside of async functions, as well. Pretty helpful when you want to dynamically
![await is only valid in async functions and the top level bodies of modules error in commonjs module - YouTube await is only valid in async functions and the top level bodies of modules error in commonjs module - YouTube](https://i.ytimg.com/vi/uO8C4QypxqM/sddefault.jpg)