From dc661abb36e52e58e4b8177a4e942a1343158073 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Sun, 12 May 2024 01:01:38 +0900 Subject: [PATCH] docs(node api): note TLA caveat --- docs/node/tsx-require.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/node/tsx-require.md b/docs/node/tsx-require.md index 808da57d5..fabec1f65 100644 --- a/docs/node/tsx-require.md +++ b/docs/node/tsx-require.md @@ -6,8 +6,9 @@ Use this function for importing TypeScript files in CommonJS mode without adding Note, the current file path must be passed in as the second argument to resolve the import context. -::: warning Caveat -`import()` & asynchronous `require()` calls in the loaded files are not enhanced. +::: warning Caveats +- `import()` & asynchronous `require()` calls in the loaded files are not enhanced. +- Because it compiles ESM syntax to run in CommonJS mode, top-level await is not supported ::: ## CommonJS usage