[vanilla] [typescript] Top Level Await #4980
Replies: 1 comment
-
Anyway, I follow a dev on YouTube, which is using my same ts configuration and used Top Level Await for a project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I searched before placing the question, didn't find anything related to Top Level Await.
Then I had an idea and set
moduleResolution: "node"
in tsconfig... and bam, it worked!My question now is, is this the right approach?
Also set module and target to ESNext as usual to get Top Level Await working and type: "module" on package.json.
Beta Was this translation helpful? Give feedback.
All reactions