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/fetch/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/fetch') diff --git a/ext/fetch/lib.rs b/ext/fetch/lib.rs index 07af9fa15..b4c12fcbc 100644 --- a/ext/fetch/lib.rs +++ b/ext/fetch/lib.rs @@ -94,7 +94,8 @@ pub fn init(options: Options) -> Extension where FP: FetchPermissions + 'static, { - Extension::builder() + Extension::builder(env!("CARGO_PKG_NAME")) + .dependencies(vec!["deno_webidl", "deno_web", "deno_url", "deno_console"]) .js(include_js_files!( prefix "deno:ext/fetch", "01_fetch_util.js", -- cgit v1.2.3