From 19cf9450039a17e2a584683733acd2a535fc8fa0 Mon Sep 17 00:00:00 2001 From: 0x5457 <0x5457@protonmail.com> Date: Sun, 17 May 2026 14:28:54 +0000 Subject: [PATCH] fix(deno_facade/eszip): canonicalize entrypoint path to support symlinks --- crates/deno_facade/eszip/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/deno_facade/eszip/mod.rs b/crates/deno_facade/eszip/mod.rs index 8a80c0e21..4803cc550 100644 --- a/crates/deno_facade/eszip/mod.rs +++ b/crates/deno_facade/eszip/mod.rs @@ -754,6 +754,10 @@ pub async fn generate_binary_eszip( Arc::into_inner(create_graph(&args, emitter_factory.clone()).await?) .context("can't unwrap the graph")?; + // Align entrypoint with `create_graph`, which canonicalizes the path; + // otherwise symlinked entrypoints fail to load with "Module not found". + let path = std::fs::canonicalize(&path).unwrap_or(path); + let specifier = ModuleSpecifier::parse( &Url::from_file_path(&path) .map(|it| Cow::Owned(it.to_string()))