This module registers pinia-plugin-persistedstate-2 with storage backed by idb-keyval (small ESM library on IndexedDB). It avoids legacy UMD packages such as localforage, which break under Vite’s native ESM handling (does not provide an export named 'default').
- Async
getItem/setItem/removeItemcompatible with the persisted-state plugin - Client-only Nuxt plugin (
desktop-plugin-persistence) - Storage keys match Pinia store ids (e.g.
desktop,desktop/application/todo/windows)
pnpm desktop add @owdproject/module-persistenceThis module is released under the MIT License.