After quick prototyping https://github.com/oasisprotocol/wallet/compare/mz/manifest-v3?expand=1 this can "work". Tested with Ledger too.
Build problems
We can't use dynamic imports in service workers which affects dump validators fallback and dynamic webextension-polyfill imports, but these are easy fixes. The same problem occurs within our @oasisprotocol/ionic-ledger-hw-transport-bl package too. I did not look into details.
Runtime problems
Direct usage of window or document. In most cases this is related to localStorage usage. Maybe we could have utils to switch between chrome.storage and window.localStorage based on build type.
After quick prototyping
https://github.com/oasisprotocol/wallet/compare/mz/manifest-v3?expand=1
this can "work". Tested with Ledger too.Build problems
We can't use dynamic imports in service workers which affects dump validators fallback and dynamic webextension-polyfill imports, but these are easy fixes. The same problem occurs within our
@oasisprotocol/ionic-ledger-hw-transport-bl
package too. I did not look into details.Runtime problems
Direct usage of window or document. In most cases this is related to localStorage usage. Maybe we could have utils to switch between chrome.storage and window.localStorage based on build type.