mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
feat(core): allow specifying name and dependencies of an Extension (#17301)
This commit is contained in:
parent
2be1282be4
commit
c41d4ff90e
57 changed files with 158 additions and 80 deletions
|
@ -62,7 +62,8 @@ pub fn init<P: TimersPermission + 'static>(
|
|||
blob_store: BlobStore,
|
||||
maybe_location: Option<Url>,
|
||||
) -> Extension {
|
||||
Extension::builder()
|
||||
Extension::builder(env!("CARGO_PKG_NAME"))
|
||||
.dependencies(vec!["deno_webidl", "deno_console", "deno_url"])
|
||||
.js(include_js_files!(
|
||||
prefix "deno:ext/web",
|
||||
"00_infra.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue