8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbcbff9 commit 58bff04Copy full SHA for 58bff04
doc/api/esm.md
@@ -332,6 +332,12 @@ syncBuiltinESMExports();
332
fs.readFileSync === readFileSync;
333
```
334
335
+> When importing built-in modules, all the named exports (i.e. properties of the module exports object)
336
+> are populated even if they are not individually accessed.
337
+> This can make initial imports of built-in modules slightly slower compared to loading them with
338
+> `require()` or `process.getBuiltinModule()`, where the module exports object is evaluated immediately,
339
+> but some of its properties may only be initialized when first accessed individually.
340
+
341
## `import()` expressions
342
343
[Dynamic `import()`][] provides an asynchronous way to import modules. It is
0 commit comments