mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14:48 +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
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue