Skip to content

Refactor js package build process for removing the need for await init() call #20

@findolor

Description

@findolor

Currently when we import the package to a project, we need to use the following syntax to initialize wasm.

import init, { SQLiteWasmDatabase. } from "@rainlanguage/sqlite-web"

await init();
const db = SQLiteWasmDatabase.new('test.db');

This is not the best DX so we need to be able to just import the db constructor and not use init.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions