Skip to content

Commit

Permalink
fix: make sure the vue vite plugin is always present
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Mar 21, 2024
1 parent 7bbf34e commit 9d0b108
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/storybook-nuxt/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ async function defineNuxtConfig(baseConfig: Record<string, any>) {
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)
Expand Down

0 comments on commit 9d0b108

Please sign in to comment.