Open KnorpelSenf opened 2 hours ago
Note that https://deno.land/x/grammy/mod.ts
re-exports Bot
(src) so my guess is that the binary only contains the modules that are imported directly, but not those that get imported transitively.
I think it’s missing redirects. If you import the resolved specifier it will probably work.
I think it’s missing redirects. If you import the resolved specifier it will probably work.
Can confirm that this fixed it.
Version: Deno 2.0.3
Repro
Create any script with an HTTP import, such as this one:
Compile it and run the binary.
You will see the following output.
Instead, it is expected that the script runs correctly and that the output is just
secret-token
.Cause
This works correctly with 2.0.2.
I used
git bisect
to narrow it down to #26494. /cc @dsherret