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 compilation to webassembly (should be fairly easy!) #174

Open
willsmanley opened this issue Jan 15, 2025 · 2 comments
Open

Support compilation to webassembly (should be fairly easy!) #174

willsmanley opened this issue Jan 15, 2025 · 2 comments

Comments

@willsmanley
Copy link

This library currently uses package:js/js.dart and package:js/js_util.dart, which are not compatible with WebAssembly (Wasm) builds. This results in build errors when targeting Wasm.

It would be great to migrate to dart:js_interop for compatibility with Wasm. This change would help developers who are targeting Wasm with their Flutter web applications (faster and better!)

The change should not be very difficult (i will look at it if i have time) but it would make a huge difference

@willsmanley
Copy link
Author

Looks like i was able to do it fairly quickly: https://github.com/willsmanley/mixpanel-flutter

I'll open a PR now

@willsmanley
Copy link
Author

looks like we already have an approved PR, i didnt see until now: #167

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

No branches or pull requests

1 participant