1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-03-12 13:39:14 +01:00
bitwarden-browser/apps
Matt Gibson f9f30f8ec4
[PM-17479] Load-sdk-once (#12764)
* create service to load sdk on application init

* Eagerly load CLI SDK

* Remove wasm logging to api

* Fix imports

* Eagerly load Desktop renderer SDK

Note: If the main process ever requires an SDK, we'll need to load it there, too.
In that event, it's probably a good idea to move to IPC for all SDK functions to avoid
loading the SDK for every window.

* init wasm module from sdk load service

* Use default client factory

* Fix type imports

* Resolve jest module import errors

A CLI sdk load service that async imports our wasm binary doesn't seem to be needed to run, but jest isn't dealing with the ESM import properly.

* Fix linting

* remove example code
2025-01-23 14:34:22 -05:00
..
browser [PM-17479] Load-sdk-once (#12764) 2025-01-23 14:34:22 -05:00
cli [PM-17479] Load-sdk-once (#12764) 2025-01-23 14:34:22 -05:00
desktop [PM-17479] Load-sdk-once (#12764) 2025-01-23 14:34:22 -05:00
web [PM-17479] Load-sdk-once (#12764) 2025-01-23 14:34:22 -05:00