summaryrefslogtreecommitdiff
path: root/ext/broadcast_channel
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/broadcast_channel
parent2be1282be42369e558cc77f75b22488ce7a8215e (diff)
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/broadcast_channel')
-rw-r--r--ext/broadcast_channel/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/broadcast_channel/lib.rs b/ext/broadcast_channel/lib.rs
index 00f8ec9ce..0bf359e6b 100644
--- a/ext/broadcast_channel/lib.rs
+++ b/ext/broadcast_channel/lib.rs
@@ -109,7 +109,8 @@ pub fn init<BC: BroadcastChannel + 'static>(
bc: BC,
unstable: bool,
) -> Extension {
- Extension::builder()
+ Extension::builder(env!("CARGO_PKG_NAME"))
+ .dependencies(vec!["deno_webidl", "deno_web"])
.js(include_js_files!(
prefix "deno:ext/broadcast_channel",
"01_broadcast_channel.js",