From a0a4c510580848da361c37d242b615bea86eafb4 Mon Sep 17 00:00:00 2001 From: Prazdevs Date: Mon, 16 Dec 2024 21:05:43 +0100 Subject: [PATCH] feat(nuxt): explicit Nuxt plugin name (`pinia-plugin-persistedstate`) --- src/runtime/plugin.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 9de6cd1..8978571 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -33,6 +33,9 @@ function piniaPlugin(context: PiniaPluginContext) { ) } -export default defineNuxtPlugin(({ $pinia }) => { - ($pinia as Pinia).use(piniaPlugin) +export default defineNuxtPlugin({ + name: 'pinia-plugin-persistedstate', + setup({ $pinia }) { + ($pinia as Pinia).use(piniaPlugin) + }, })