All previous SVGBob WASM builds were out of date.
This is a dead simple, minimal config, SVGBob wasm build.
import { getRenderer } from '@EmNudge/svgbob-wasm';
getRenderer().then(render => {
const svgText = render('|hello|');
document.body.innerHTML = svgText; // do something with SVG text
});
Ensure you have wasm-pack and pnpm installed.
pnpm i
npm run build
Optimally all these packages would be retired in favor of an official build maintained by the current svgbob project owner.
The hope was to showcase a simple-enough port to lower the burden of setting up the build process.