mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat(compile): support "bring your own node_modules" in deno compile (#21377)
Not tested thoroughly. This is a good start. Closes #21350
This commit is contained in:
parent
7e56a0466f
commit
9ac405d587
13 changed files with 245 additions and 121 deletions
|
@ -122,7 +122,7 @@ pub async fn execute_script(
|
|||
None => Default::default(),
|
||||
};
|
||||
let env_vars = match npm_resolver.root_node_modules_path() {
|
||||
Some(dir_path) => collect_env_vars_with_node_modules_dir(&dir_path),
|
||||
Some(dir_path) => collect_env_vars_with_node_modules_dir(dir_path),
|
||||
None => collect_env_vars(),
|
||||
};
|
||||
let local = LocalSet::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue