Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Jan 28, 2025

This sets up a new way to build the WebAssembly modules with SQLite and the PowerSync core extension. It clones the upstream sqlite3.dart repository at a given tag and applies a patch to the build scripts to include the extension. The resulting WebAssembly files are also published with the workers when we tag a powersync release.
The setup_web.dart script will use releases from this repository (and expect wasm files there) starting with the next minor version, 1.12.0. This gives us the opportunity to prepare a patch release to test the publishing workflow.

Additionally, I've set up a small npm package that allows us to publish the compiled WebAssembly modules to npm. This allows us to use npm-aware CDNs to deliver the WebAssembly assets (useful for e.g. FlutterFlow users that can't include .wasm assets in test mode).

@simolus3 simolus3 marked this pull request as ready for review February 10, 2025 09:30
@simolus3 simolus3 merged commit c0d44cb into main Feb 12, 2025
5 checks passed
@simolus3 simolus3 deleted the new-web-build branch February 12, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants