Skip to content

v0.2.0

Latest

Choose a tag to compare

@sliemeobn sliemeobn released this 22 Aug 13:38

馃 Support for JavaScriptKit / BridgeJS 馃

The ?js mode runs swift package js and re-exports the generated module.

// index.ts
import { init } from "virtual:swift-wasm?js&product=MyApp";

const wasmInstance = await init();

// product name can be omitted if only one executable target is in the package
// import { init } from "virtual:swift-wasm?js";

Migrating from ?init to ?js is quite simple, see this PR as an example.

What's Changed

Full Changelog: v0.1.3...v0.2.0