summaryrefslogtreecommitdiff
path: root/cli/mainrt.rs
diff options
context:
space:
mode:
authorIvancing <648262030@qq.com>2024-07-22 01:40:42 +0800
committerGitHub <noreply@github.com>2024-07-21 10:40:42 -0700
commit4e8f5875bc59ddfb84c8b0b26071a547b49823a9 (patch)
treeecee05a99e9be182a196dad035dfab79280bab92 /cli/mainrt.rs
parentbb1c6c49bb30a6518ca4dbd3b3f7ec52f5861b76 (diff)
fix(cli): add NAPI support in standalone mode (#24642)
Currently, importing Node-Addons modules in a standalone binary results in a `missing symbol called` error (https://github.com/denoland/deno/issues/24614). Because the NAPI symbols are not exported in this mode. This PR should fix the issue.
Diffstat (limited to 'cli/mainrt.rs')
-rw-r--r--cli/mainrt.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/mainrt.rs b/cli/mainrt.rs
index aafbf7932..ef163dd00 100644
--- a/cli/mainrt.rs
+++ b/cli/mainrt.rs
@@ -15,6 +15,7 @@ mod errors;
mod file_fetcher;
mod http_util;
mod js;
+mod napi;
mod node;
mod npm;
mod resolver;