Skip to content

Commit dd48723

Browse files
tniessentargos
authored andcommitted
doc: link to dynamic import function
PR-URL: #42634 Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]>
1 parent f5abfba commit dd48723

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

doc/api/crypto.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ a preload module).
5959

6060
When using ESM, if there is a chance that the code may be run on a build
6161
of Node.js where crypto support is not enabled, consider using the
62-
`import()` function instead of the lexical `import` keyword:
62+
[`import()`][] function instead of the lexical `import` keyword:
6363

6464
```mjs
6565
let crypto;
@@ -6018,6 +6018,7 @@ See the [list of SSL OP Flags][] for details.
60186018
[`hash.update()`]: #hashupdatedata-inputencoding
60196019
[`hmac.digest()`]: #hmacdigestencoding
60206020
[`hmac.update()`]: #hmacupdatedata-inputencoding
6021+
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports
60216022
[`keyObject.export()`]: #keyobjectexportoptions
60226023
[`postMessage()`]: worker_threads.md#portpostmessagevalue-transferlist
60236024
[`sign.sign()`]: #signsignprivatekey-outputencoding

doc/api/http2.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ a preload module).
5252

5353
When using ESM, if there is a chance that the code may be run on a build
5454
of Node.js where crypto support is not enabled, consider using the
55-
`import()` function instead of the lexical `import` keyword:
55+
[`import()`][] function instead of the lexical `import` keyword:
5656

5757
```mjs
5858
let http2;
@@ -4080,6 +4080,7 @@ you need to implement any fall-back behavior yourself.
40804080
[`http2.createServer()`]: #http2createserveroptions-onrequesthandler
40814081
[`http2session.close()`]: #http2sessionclosecallback
40824082
[`http2stream.pushStream()`]: #http2streampushstreamheaders-options-callback
4083+
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports
40834084
[`net.Server.close()`]: net.md#serverclosecallback
40844085
[`net.Socket.bufferSize`]: net.md#socketbuffersize
40854086
[`net.Socket.prototype.ref()`]: net.md#socketref

doc/api/https.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ a preload module).
3535

3636
When using ESM, if there is a chance that the code may be run on a build
3737
of Node.js where crypto support is not enabled, consider using the
38-
`import()` function instead of the lexical `import` keyword:
38+
[`import()`][] function instead of the lexical `import` keyword:
3939

4040
```mjs
4141
let https;
@@ -534,6 +534,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p
534534
[`http.request()`]: http.md#httprequestoptions-callback
535535
[`https.Agent`]: #class-httpsagent
536536
[`https.request()`]: #httpsrequestoptions-callback
537+
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports
537538
[`net.Server`]: net.md#class-netserver
538539
[`new URL()`]: url.md#new-urlinput-base
539540
[`server.listen()`]: net.md#serverlisten

doc/api/tls.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ a preload module).
4040

4141
When using ESM, if there is a chance that the code may be run on a build
4242
of Node.js where crypto support is not enabled, consider using the
43-
`import()` function instead of the lexical `import` keyword:
43+
[`import()`][] function instead of the lexical `import` keyword:
4444

4545
```mjs
4646
let tls;
@@ -2221,6 +2221,7 @@ added: v11.4.0
22212221
[`SSL_export_keying_material`]: https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html
22222222
[`SSL_get_version`]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html
22232223
[`crypto.getCurves()`]: crypto.md#cryptogetcurves
2224+
[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports
22242225
[`net.Server.address()`]: net.md#serveraddress
22252226
[`net.Server`]: net.md#class-netserver
22262227
[`net.Socket`]: net.md#class-netsocket

0 commit comments

Comments
 (0)