feat(core): allow specifying name and dependencies of an Extension (#17301)

This commit is contained in:
Leo Kettmeir 2023-01-08 23:48:46 +01:00 committed by GitHub
parent 2be1282be4
commit c41d4ff90e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 158 additions and 80 deletions

View file

@ -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",