Skip to content

Releases: elementary-swift/vite-plugin-swift-wasm

v0.2.0

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

v0.1.3

Choose a tag to compare

@sliemeobn sliemeobn released this 14 May 14:38

What's Changed

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@sliemeobn sliemeobn released this 15 Jan 15:10

What's Changed

  • automatically support unicode for embedded builds by @sliemeobn in #4

Full Changelog: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@sliemeobn sliemeobn released this 06 Jan 21:31

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.1.1