rd13 / jsperf.app

jsperf-app.vercel.app
77 stars 6 forks source link

How do we run async code with ES Modules? #28

Closed trusktr closed 10 months ago

trusktr commented 11 months ago

F.e. I want to put this in the setup HTML:

<script type="module>
  import something from "somelib"

  window.foo = something()
</script>

Also what's the async option for each test case? Can I use await in the test?

rd13 commented 10 months ago

@trusktr I've just added module support, example here: https://jsperf.app/simuqe