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:
202
202
node -- import some-package/register ./my-app.js
203
203
` ` `
204
204
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.
207
208
208
209
Using ` -- import ` ensures that the hooks are registered before any application
209
210
files are imported, including the entry point of the application. Alternatively,
@@ -1097,6 +1098,7 @@ returned object contains the following keys:
1097
1098
[ES Modules]: esm.md
1098
1099
[HTTPS and HTTP imports]: esm.md#https-and-http-imports
1099
1100
[Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej
1101
+ [` " exports" ` ]: packages.md#exports
1100
1102
[` -- enable- source- maps` ]: cli.md#--enable-source-maps
1101
1103
[` ArrayBuffer ` ]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
1102
1104
[` NODE_V8_COVERAGE = dir` ]: cli.md#node_v8_coveragedir
You can’t perform that action at this time.
0 commit comments