Closed zaydek closed 3 years ago
These checks would be added to generated JS code and reported to Go as a stderr errors. It gets a little weird if we want colors in the terminal output, though.
A better question to ask is: does using await on non-async code blow up?
This shouldn’t matter in practice. We don’t care whether a function is async or not, simply that it is a function. Anyway, await on non-async code seems to be idempotent.
We want to make sure that right now we only support async loaders but everything else should be sync or just non-async code.