xvrh / chrome_extension.dart

A library for accessing the chrome.* APIs available in Chrome extensions
https://pub.dev/packages/chrome_extension
BSD 2-Clause "Simplified" License
25 stars 8 forks source link

WASM support #28

Open pepealonso95 opened 3 months ago

pepealonso95 commented 3 months ago

Package needs to change dependencies like 'dart:js_util' to dart:js_interop in order to be compatible with Flutter Web WASM. https://dart.dev/interop/js-interop

xvrh commented 3 months ago

Yeah, the intent was to make it work with WASM and most of the generated bindings already uses dart:js_interop.

In practice, wasm compilation was never really tested and it's totally possible that I missed some requirements.

I was not aware that we couldn't use dart:js_util. I guess we will have to replace all the promiseToFuture with toDart.