@preference-sl/pref-configurator-sdk
v2.1.0
Published
.NET WebAssembly SDK that embeds Preference's business logic for building product configurators (windows, doors, joinery) in browser-based ecommerce platforms.
Downloads
1,231
Keywords
Readme
pref-configurator-sdk
Drop-in WebAssembly SDK that runs Preference's product-configurator engine inside the consumer's
bundler. Requires a browser/worker environment with module Worker support and a bundler that
respects
ew URL(asset, import.meta.url)\ (webpack 5+, Turbopack, Vite, esbuild, Rollup).
\\ s import { init } from '@preference-sl/pref-configurator-sdk';
const api = await init(envJson); const options = await api.GetOptions(); \\
\init\ boots the runtime in a Web Worker; _framework/*\ assets are emitted by your bundler automatically — no \public/\ copy step or postinstall hook is required. See [\docs/wasm-worker-init.md](https://bitbucket.org/preferencesl/pref-configurator-sdk/src/develop/PrefConfigurator/docs/wasm-worker-init.md) for the architecture and migration notes.
