mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
feat(runtime): Add example for extension with ops (#19204)
Spend quite some time trying to get this working. With proper example would have been a lot faster. So this is pr with the example. I also rearranged examples a little bit to allow for addition of more examples
This commit is contained in:
parent
b1e28b0708
commit
f3193e0e1c
6 changed files with 59 additions and 8 deletions
5
runtime/examples/extension_with_esm/bootstrap.js
vendored
Normal file
5
runtime/examples/extension_with_esm/bootstrap.js
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||
function hello() {
|
||||
console.log("Hello from extension!");
|
||||
}
|
||||
globalThis.Extension = { hello };
|
Loading…
Add table
Add a link
Reference in a new issue