Skip to content

Commit c36214c

Browse files
committed
Mark this feature as experimental
1 parent 7299d2d commit c36214c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ module.register('import-in-the-middle/hook.mjs', import.meta.url, {
7171
})
7272
```
7373
74-
### Only Intercepting Hooked modules
74+
### Only Intercepting Hooked modules
75+
> **Note:** This feature is experimental
7576
7677
If you are `Hook`'ing all modules before they are imported, for example in a
7778
module loaded via the Node.js `--import` CLI argument, you can configure the

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ type CreateAddHookMessageChannelReturn<Data> = {
9292
}
9393

9494
/**
95+
* EXPERIMENTAL
96+
* This feature is experimental and may change in minor versions.
97+
* **NOTE** This feature does not currently work with the {internals: true} Hook option.
98+
*
9599
* Creates a message channel with a port that can be used to add hooks to the
96100
* list of exclusively included modules.
97101
*

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ function callHookFn (hookFn, namespace, name, baseDir) {
3535
let sendModulesToLoader
3636

3737
/**
38+
* EXPERIMENTAL
39+
* This feature is experimental and may change in minor versions.
40+
* **NOTE** This feature does not currently work with the {internals: true} Hook option.
41+
*
3842
* Creates a message channel with a port that can be used to add hooks to the
3943
* list of exclusively included modules.
4044
*

0 commit comments

Comments
 (0)