Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support being compiled with build_web_compilers #84

Merged
merged 1 commit into from
Feb 3, 2025

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