Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 635 Bytes

File metadata and controls

18 lines (12 loc) · 635 Bytes

Basic example

Install Development Snapshot toolchain DEVELOPMENT-SNAPSHOT-2024-07-08-a from swift.org/install and run the following commands:

$ swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-07-09-a/swift-wasm-DEVELOPMENT-SNAPSHOT-2024-07-09-a-wasm32-unknown-wasi.artifactbundle.zip
$ ./build.sh
$ npx serve

Re-generating BridgeJS code

You need to re-generate files under Sources/Generated when you make changes to bridged interfaces:

$ swift package plugin --allow-writing-to-package-directory bridge-js