{"library":"react-cosmos-plugin-vite","title":"React Cosmos Vite Plugin","description":"Official Vite plugin for React Cosmos, a development tool for building and testing React components in isolation. Version 7.3.0 supports React 18+, React 19, and Next.js 15. Actively maintained with monthly releases, it auto-generates a default index.html and auto-detects the main entry point. Key differentiator: seamless integration with React Cosmos's fixture and decorator system, enabling isolated component development without a full app setup. Requires react-cosmos >=7, vite, react, and react-dom as peer dependencies.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install react-cosmos-plugin-vite"],"cli":null},"imports":["import { reactCosmosVitePlugin } from 'react-cosmos-plugin-vite'","import { generateCosmosIndexHtml } from 'react-cosmos-plugin-vite'","import { defineConfig } from 'vite'; import { reactCosmosVitePlugin } from 'react-cosmos-plugin-vite'; export default defineConfig({ plugins: [reactCosmosVitePlugin()] })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// vite.config.ts\nimport { defineConfig } from 'vite';\nimport { reactCosmosVitePlugin } from 'react-cosmos-plugin-vite';\n\nexport default defineConfig({\n  plugins: [reactCosmosVitePlugin()],\n});\n\n// Install peer dependencies:\n// npm install --save-dev react-cosmos react-cosmos-plugin-vite vite react react-dom\n\n// Run Cosmos:\n// npx cosmos\n","lang":"typescript","description":"Shows how to configure Vite with the React Cosmos plugin, install peer dependencies, and start the Cosmos dev server.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}