5 ms·
For those who, like me, wondered how this is possible without hitting the top-level await obstacle mentioned in the article, the options doc includes this line
by jcheng 6y ago
For those who, like me, wondered how this is possible without hitting the top-level await obstacle mentioned in the article, the options doc includes this line (emphasis mine):
> "await":false - A boolean for top-level await in modules without ESM exports. (Node 10+)
So, yeah, seems to rely on "most ESM modules don't use top-level await". Seems like a useful option to have, thanks!