馃 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