summaryrefslogtreecommitdiff
path: root/ext/flash
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-01-08 23:48:46 +0100
committerGitHub <noreply@github.com>2023-01-08 23:48:46 +0100
commitc41d4ff90e09b63bd1894052352a5acba57b1704 (patch)
tree52be95551ed263c2f4831aaefc78bb6fdda6d89c /ext/flash
parent2be1282be42369e558cc77f75b22488ce7a8215e (diff)
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/flash')
-rw-r--r--ext/flash/lib.rs9
1 files changed, 8 insertions, 1 deletions
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<P: FlashPermissions + 'static>(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",