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

@ -104,7 +104,8 @@ impl Resource for WebGpuQuerySet {
}
pub fn init(unstable: bool) -> Extension {
Extension::builder()
Extension::builder(env!("CARGO_PKG_NAME"))
.dependencies(vec!["deno_webidl", "deno_web"])
.js(include_js_files!(
prefix "deno:ext/webgpu",
"01_webgpu.js",