Open DyncMark opened 3 years ago
Interesting! This is actually a bug in @babel/preset-modules.
Here's the bug reproduced in the Babel repl.
I've opened babel/preset-modules#31 to track getting a fix in.
In the meantime, the quick fix is to not use an async function as a promise initializer (which is generally not recommended anyway, since doing so actually swallows errors!).
[os]:
[error log]: