Skip to content

Commit

Permalink
feat: add support for ECMAScript modules in the JavaScript kit (#236)
Browse files Browse the repository at this point in the history
* feat: add support for ECMAScript modules in the JavaScript kit

* fix: remove unnecesary exclude in GitHub actions

* feat: improve module detection in the JavaScript kit

* feat: update JS Hono example to use modules and minify the output

* fix: detect exported objects as JS modules

* chore: stop using unicode in regexps and fix block one

* fix: use differnt line endings so modules are properly detected on Windows

* feat: add a new e2e for js-hono example
  • Loading branch information
Angelmmiguel authored Oct 17, 2023
1 parent 983540f commit ed0bfac
Show file tree
Hide file tree
Showing 15 changed files with 1,277 additions and 1,812 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ jobs:
- name: Build wws on release mode
run: cargo build --verbose --release
- name: Test
run: cargo test --workspace --exclude wasm-workers-quick-js-engine -- --show-output
run: cargo test --workspace -- --show-output
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
Loading

0 comments on commit ed0bfac

Please sign in to comment.