Releases: elementary-swift/vite-plugin-swift-wasm
Releases · elementary-swift/vite-plugin-swift-wasm
Release list
v0.2.0
🦾 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
- add support for js plugin build by @sliemeobn in #6
- support
&moduleimports and custom scratch paths by @sliemeobn in #7 - better source directory detection by @sliemeobn in #8
Full Changelog: v0.1.3...v0.2.0
v0.1.3
v0.1.2
What's Changed
- automatically support unicode for embedded builds by @sliemeobn in #4
Full Changelog: v0.1.1...v0.1.2
v0.1.1
What's Changed
- fix path handling (spaces in paths) by @sliemeobn in #2
New Contributors
- @sliemeobn made their first contribution in #2
Full Changelog: v0.1.0...v0.1.1