Skip to content

Commit

Permalink
feat: add support for ECMAScript modules in the JavaScript kit
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelmmiguel committed Oct 16, 2023
1 parent 2b72b05 commit a95db74
Show file tree
Hide file tree
Showing 11 changed files with 1,230 additions and 200 deletions.
194 changes: 2 additions & 192 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ members = [
"crates/worker",
"kits/rust",
"kits/rust/worker",
"kits/javascript",
]
# Exclude examples
exclude = [
Expand All @@ -71,6 +70,8 @@ exclude = [
"examples/rust-pdf-create",
"examples/rust-wasi-nn",
"examples/rust-wasi-nn-preload",
# It uses incompatible crate versions
"kits/javascript",
]

[workspace.dependencies]
Expand Down
21 changes: 21 additions & 0 deletions examples/js-modules/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# JavaScript modules example

Run a JavaScript that exports the application in Wasm Workers Server.

## Prerequisites

* Wasm Workers Server (wws):

```shell-session
curl -fsSL https://workers.wasmlabs.dev/install | bash
```

## Run

```shell-session
wws https://github.com/vmware-labs/wasm-workers-server.git -i --git-folder "examples/js-modules"
```

## Resources

* [JavaScript documentation](https://workers.wasmlabs.dev/docs/languages/javascript)
Loading

0 comments on commit a95db74

Please sign in to comment.