{"library":"storybook-builder-vite-vue2","title":"storybook-builder-vite-vue2","type":"library","description":"A Storybook builder plugin for Vite targeting Vue 2 projects, version 0.1.32. It enables using Vite as the bundler for Storybook instead of Webpack, providing fast startup times and instant HMR. Requires Vite >=2.6.7 and Storybook >=6.4.0. Key differentiator: specifically designed for Vue 2, not compatible with Vue 3 or other frameworks. Note: does not read vite.config.js by default; configuration must be done via viteFinal hook. Known limitations: full page reload on story file changes, prebundling issues in Storybook context.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install storybook-builder-vite-vue2"],"cli":null},"imports":["none (used via Storybook config)","import type { StorybookViteConfig } from '@storybook/builder-vite'","import type { ViteFinal } from '@storybook/builder-vite'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/djaler/storybook-builder-vite-vue2","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/storybook-builder-vite-vue2","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"// .storybook/main.js\nmodule.exports = {\n  stories: ['../src/**/*.stories.@(js|ts)'],\n  addons: ['@storybook/addon-essentials'],\n  core: {\n    builder: 'storybook-builder-vite-vue2',\n  },\n  async viteFinal(config, { configType }) {\n    // Customize Vite config here\n    const { mergeConfig } = require('vite');\n    return mergeConfig(config, {\n      resolve: {\n        alias: { 'vue': 'vue/dist/vue.esm.js' },\n      },\n    });\n  },\n};","lang":"javascript","description":"Configures Storybook with the Vite builder for a Vue 2 project, showing how to set the builder and customize Vite config via viteFinal.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}