1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00

fix(runtime): Example hello_runtime panic (#19125)

After commit f34fcd, running example will panic because esm_entry_point
is not set.

Closes https://github.com/denoland/deno/issues/19127
This commit is contained in:
yzy-1 2023-05-14 19:55:26 +00:00 committed by Levente Kurusa
parent e0b4ccab78
commit e61ee44d69
No known key found for this signature in database
GPG key ID: 9F72F3C05BA137C4

View file

@ -9,7 +9,11 @@ use deno_runtime::worker::WorkerOptions;
use std::path::Path;
use std::rc::Rc;
deno_core::extension!(hello_runtime, esm = ["hello_runtime_bootstrap.js"]);
deno_core::extension!(
hello_runtime,
esm_entry_point = "ext:hello_runtime/hello_runtime_bootstrap.js",
esm = ["hello_runtime_bootstrap.js"]
);
#[tokio::main]
async fn main() -> Result<(), AnyError> {