Skip to content

Commit

Permalink
docs: remove duplicate Tracking loaded files section (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Jun 6, 2024
1 parent 9f04dae commit bd56e84
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions docs/node/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,6 @@ register({
})
```

#### Tracking loaded files

Detect files that get loaded with the `onImport` hook:

```ts
register({
onImport: (file: string) => {
console.log(file)
// file:///foo.ts
}
})
```

### Scoped registration

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

0 comments on commit bd56e84

Please sign in to comment.