Skip to content

Commit 3f704d3

Browse files
committed
Updated README with sql.js usage
1 parent f2085da commit 3f704d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ Browser-safe entry that avoids Node-only dependencies. It expects `Buffer`,
3131
`Uint8Array`, or `ArrayBuffer` inputs rather than file paths.
3232

3333
SQLite-backed formats (Snap `.sps/.spb` and TouchChat `.ce`) require a WASM
34-
SQLite engine. Configure `sql.js` in your bundler before loading those formats:
34+
SQLite engine. To support these, configure `sql.js` in your bundler
35+
and either include `<script src="sql-wasm.js"></script>` in your HTML, or
36+
`window.initSqlJs = require('sql.js');` in your app.
3537

3638
```ts
3739
import { configureSqlJs, SnapProcessor } from '@willwade/aac-processors/browser';

0 commit comments

Comments
 (0)