diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-05-28 19:44:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 12:44:41 -0600 |
commit | b6a3f8f722db89bc136e91da598f581c5838d38e (patch) | |
tree | 668542949383621fab493343cc2ddf8a4928c649 /cli/build.rs | |
parent | bb0676d3e23dfd7fe27f9932b955694d51438486 (diff) |
refactor(core): remove ext: modules from the module map (#19040)
Rather than disallowing `ext:` resolution, clear the module map after
initializing extensions so extension modules are anonymized. This
operation is explicitly called in `deno_runtime`. Re-inject `node:`
specifiers into the module map after doing this.
Fixes #17717.
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/build.rs b/cli/build.rs index 2b2181bae..72b8e7818 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -40,7 +40,7 @@ mod ts { let node_built_in_module_names = SUPPORTED_BUILTIN_NODE_MODULES .iter() - .map(|s| s.name) + .map(|p| p.module_name()) .collect::<Vec<&str>>(); let build_libs = state.borrow::<Vec<&str>>(); json!({ |