diff options
author | Tobias Nießen <tniessen@tnie.de> | 2022-04-09 14:41:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 14:41:30 +0300 |
commit | a113468383183b84d1a77dbc0625f7dfdcda631f (patch) | |
tree | 5445f79f01f2b441c2a9a6a2c4179db3e93224ea /doc | |
parent | 2d84620f867cfc18be1a50f4e5f076dd79ba22e4 (diff) |
doc: link to dynamic import function
PR-URL: https://github.com/nodejs/node/pull/42634
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/crypto.md | 3 | ||||
-rw-r--r-- | doc/api/http2.md | 3 | ||||
-rw-r--r-- | doc/api/https.md | 3 | ||||
-rw-r--r-- | doc/api/tls.md | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 3a000b13612..d88be8da3d0 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -59,7 +59,7 @@ a preload module). When using ESM, if there is a chance that the code may be run on a build of Node.js where crypto support is not enabled, consider using the -`import()` function instead of the lexical `import` keyword: +[`import()`][] function instead of the lexical `import` keyword: ```mjs let crypto; @@ -6142,6 +6142,7 @@ See the [list of SSL OP Flags][] for details. [`hash.update()`]: #hashupdatedata-inputencoding [`hmac.digest()`]: #hmacdigestencoding [`hmac.update()`]: #hmacupdatedata-inputencoding +[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports [`keyObject.export()`]: #keyobjectexportoptions [`postMessage()`]: worker_threads.md#portpostmessagevalue-transferlist [`sign.sign()`]: #signsignprivatekey-outputencoding diff --git a/doc/api/http2.md b/doc/api/http2.md index 3a4aa6c0fd0..cd588df5cf9 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -54,7 +54,7 @@ a preload module). When using ESM, if there is a chance that the code may be run on a build of Node.js where crypto support is not enabled, consider using the -`import()` function instead of the lexical `import` keyword: +[`import()`][] function instead of the lexical `import` keyword: ```mjs let http2; @@ -4143,6 +4143,7 @@ you need to implement any fall-back behavior yourself. [`http2.createServer()`]: #http2createserveroptions-onrequesthandler [`http2session.close()`]: #http2sessionclosecallback [`http2stream.pushStream()`]: #http2streampushstreamheaders-options-callback +[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports [`net.Server.close()`]: net.md#serverclosecallback [`net.Socket.bufferSize`]: net.md#socketbuffersize [`net.Socket.prototype.ref()`]: net.md#socketref diff --git a/doc/api/https.md b/doc/api/https.md index 3a28f3b0f00..d7d47cf07bc 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -35,7 +35,7 @@ a preload module). When using ESM, if there is a chance that the code may be run on a build of Node.js where crypto support is not enabled, consider using the -`import()` function instead of the lexical `import` keyword: +[`import()`][] function instead of the lexical `import` keyword: ```mjs let https; @@ -536,6 +536,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p [`http.request()`]: http.md#httprequestoptions-callback [`https.Agent`]: #class-httpsagent [`https.request()`]: #httpsrequestoptions-callback +[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports [`net.Server`]: net.md#class-netserver [`new URL()`]: url.md#new-urlinput-base [`server.listen()`]: net.md#serverlisten diff --git a/doc/api/tls.md b/doc/api/tls.md index 59d3e819ab6..69c461a1dc9 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -40,7 +40,7 @@ a preload module). When using ESM, if there is a chance that the code may be run on a build of Node.js where crypto support is not enabled, consider using the -`import()` function instead of the lexical `import` keyword: +[`import()`][] function instead of the lexical `import` keyword: ```mjs let tls; @@ -2235,6 +2235,7 @@ added: v11.4.0 [`SSL_export_keying_material`]: https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html [`SSL_get_version`]: https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html [`crypto.getCurves()`]: crypto.md#cryptogetcurves +[`import()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports [`net.Server.address()`]: net.md#serveraddress [`net.Server`]: net.md#class-netserver [`net.Socket`]: net.md#class-netsocket |