Skip to content

Commit dc661ab

Browse files
committed
docs(node api): note TLA caveat
1 parent 0e7f34e commit dc661ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/node/tsx-require.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Use this function for importing TypeScript files in CommonJS mode without adding
66

77
Note, the current file path must be passed in as the second argument to resolve the import context.
88

9-
::: warning Caveat
10-
`import()` & asynchronous `require()` calls in the loaded files are not enhanced.
9+
::: warning Caveats
10+
- `import()` & asynchronous `require()` calls in the loaded files are not enhanced.
11+
- Because it compiles ESM syntax to run in CommonJS mode, top-level await is not supported
1112
:::
1213

1314
## CommonJS usage

0 commit comments

Comments
 (0)