Skip to content

Commit

Permalink
Mark this feature as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Jul 29, 2024
1 parent 7299d2d commit c36214c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ module.register('import-in-the-middle/hook.mjs', import.meta.url, {
})
```
### Only Intercepting Hooked modules
### Only Intercepting Hooked modules
> **Note:** This feature is experimental
If you are `Hook`'ing all modules before they are imported, for example in a
module loaded via the Node.js `--import` CLI argument, you can configure the
Expand Down
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ type CreateAddHookMessageChannelReturn<Data> = {
}

/**
* EXPERIMENTAL
* This feature is experimental and may change in minor versions.
* **NOTE** This feature does not currently work with the {internals: true} Hook option.
*
* Creates a message channel with a port that can be used to add hooks to the
* list of exclusively included modules.
*
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ function callHookFn (hookFn, namespace, name, baseDir) {
let sendModulesToLoader

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

0 comments on commit c36214c

Please sign in to comment.