Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Feb 3, 2025

Outside of Flutter web, Dart web apps are typically compiled with build_runner and build_web_compilers. build_web_compilers refuses to compile code that transitively imports a dart: library not available on the web. Since sqlite_async imports dart:isolate as part of the port channel used in every isolate connection factory, it can't be used in those projects.

This adds support for build_web_compilers by creating a stub copy of port_channel.dart used when compiling to JS.

@simolus3 simolus3 merged commit bc3416c into main Feb 3, 2025
7 checks passed
@simolus3 simolus3 deleted the feat/support-build-web-compilers branch February 3, 2025 16:45
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