DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
Node.js
Why can't a module using top-level await be require()'d synchronously, even with require(esm) support?
A
It's an arbitrary restriction
B
require() is inherently synchronous, but a module with top-level await needs to complete asynchronous work before its exports are ready — these are fundamentally incompatible
C
Top-level await was never actually implemented
D
This only applies to CommonJS files, not ESM
Check Answer