Skip to content

Commit bd56e84

Browse files
authored
docs: remove duplicate Tracking loaded files section (#573)
1 parent 9f04dae commit bd56e84

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/node/esm.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,6 @@ register({
6868
})
6969
```
7070

71-
#### Tracking loaded files
72-
73-
Detect files that get loaded with the `onImport` hook:
74-
75-
```ts
76-
register({
77-
onImport: (file: string) => {
78-
console.log(file)
79-
// file:///foo.ts
80-
}
81-
})
82-
```
83-
8471
### Scoped registration
8572

8673
If you want to register tsx without affecting the environment, you can add a namespace.

0 commit comments

Comments
 (0)