From c41d4ff90e09b63bd1894052352a5acba57b1704 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sun, 8 Jan 2023 23:48:46 +0100 Subject: feat(core): allow specifying name and dependencies of an Extension (#17301) --- ext/flash/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ext/flash') diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 6eaf39944..2e2417892 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -1505,7 +1505,14 @@ pub trait FlashPermissions { } pub fn init(unstable: bool) -> Extension { - Extension::builder() + Extension::builder(env!("CARGO_PKG_NAME")) + .dependencies(vec![ + "deno_web", + "deno_net", + "deno_fetch", + "deno_websocket", + "deno_http", + ]) .js(deno_core::include_js_files!( prefix "deno:ext/flash", "01_http.js", -- cgit v1.2.3