3 ms·
What’s the syntactic sugar feature here? Top-level await is part of the language spec.
by jakelazaroff 6y ago
What’s the syntactic sugar feature here? Top-level await is part of the language spec.
- throwanem 6y agoOne into which you have to opt in, yet.
- eyelidlessness 6y agoI don’t think that’s true. It’s supported in any ESM module, per the ESM standard, without any config or runtime flags. If you mean using ESM to be the opt-in mechanism, that’s not a meaningful distinction. CJS modules and require have always been synchronous and likely always will be. Changing that would break too many things.