From 9d0b108abd37d900607c9d2b31b6c148d5add3a6 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Thu, 21 Mar 2024 17:24:35 +0100 Subject: [PATCH] fix: make sure the vue vite plugin is always present --- packages/storybook-nuxt/src/preset.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/storybook-nuxt/src/preset.ts b/packages/storybook-nuxt/src/preset.ts index 59b6256..a082831 100644 --- a/packages/storybook-nuxt/src/preset.ts +++ b/packages/storybook-nuxt/src/preset.ts @@ -99,8 +99,7 @@ async function defineNuxtConfig(baseConfig: Record) { plugins[index] = vuePlugin() } else { - // Handle the case where the plugin with name 'vite:vue' was not found - console.error('Plugin \'vite:vue\' not found in the array.') + plugins.push(vuePlugin()) } baseConfig.plugins = plugins extendedConfig = mergeConfig(config, baseConfig)