1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -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 GitHub
parent 6bea6b31d3
commit b99159bf14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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> {