File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -202,8 +202,9 @@ The file passed to `--import` can also be an export from a dependency:
202202node -- import some-package/register ./my-app.js
203203` ` `
204204
205- Where ` some- package ` has an ` " exports" ` field defining the ` / register` export to
206- map to a file that calls ` register ()` , like this ` register- hooks .js ` example.
205+ Where ` some- package ` has an [` " exports" ` ][] field defining the ` / register`
206+ export to map to a file that calls ` register ()` , like this ` register- hooks .js `
207+ example.
207208
208209Using ` -- import ` ensures that the hooks are registered before any application
209210files are imported, including the entry point of the application. Alternatively,
@@ -1097,6 +1098,7 @@ returned object contains the following keys:
10971098[ES Modules]: esm.md
10981099[HTTPS and HTTP imports]: esm.md#https-and-http-imports
10991100[Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej
1101+ [` " exports" ` ]: packages.md#exports
11001102[` -- enable- source- maps` ]: cli.md#--enable-source-maps
11011103[` ArrayBuffer ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
11021104[` NODE_V8_COVERAGE = dir` ]: cli.md#node_v8_coveragedir
You can’t perform that action at this time.
0 commit comments