ayoayco / McFly

[🚧 PoC] Back to the Basics. Into the Future. 😱
https://mcfly.js.org
MIT License
70 stars 3 forks source link

Top-Level Await for server:setup scripts #1

Open ayoayco opened 12 months ago

ayoayco commented 12 months ago

Goal is be able to use "await" inside <script server:setup>.

<script server:setup>
  const response = await fetch('https://some-url.com');
  const {details} = await response.json();
</script>