Top level await support #1604
Unanswered
joshuanathanson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I did a little digging around, and it looks like this is an issue with the build tool that Snowpack uses internally. There is an open issue to support top level await, but ATM it looks like it just passes it through. So when this code lands in the browser, it throws an error, because top level await is not supported in the browser. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to migrate a TS/React project to Snowpack. I thought I'd start out with the blank template and use the built in TypeScript and JSX support out of the box.
I pretty much got a configuration that is working, however it's erroring out when it hits a top level
await
call:I get this error:
I'm wondering if there is not support for that yet, and if not, what might be a configuration set (plugins etc.) that would support that.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions