[Tracking]: @storybook/angular-vite Framework
Author: valentinpalkovicCreated Mar 4, 2026Updated Sep 15, 2026
Labelsfeature requestangularbuilder-vitesev:S4
Create @storybook/angular-vite Framework
Overview
Implement a new @storybook/angular-vite framework package for Storybook that uses Vite instead of Webpack, providing a modern alternative to the existing webpack-based @storybook/angular package. This will enable the adoption of Storybook with Angular projects using Vite/Analog while eliminating the need for webpack dependencies.
Motivation
- The existing
@storybook/angularpackage is heavily dependent on Webpack and Angular builders, which adds significant overhead. The new framework should provide a clean break from webpack-specific logic - There is demand from the Angular community for an official Vite-based solution
- The exposed Angular Webpack API is in maintenance mode and is considered to be legacy. The Angular Core team may drop it at any time in future major Angular versions.
Goals
- Create an officially maintained
@storybook/angular-vitepackage - Eliminate webpack dependencies from the new framework
- Integrate seamlessly into Storybook's CLI ecosystem
- Establish comprehensive testing and CI/CD support
- Provide clear migration path and documentation for Angular developers
Scope: Implementation Tasks
Phase 1: Framework Package Creation
- Create new
@storybook/angular-vitepackage incode/frameworks/ - Copy and refactor renderer logic from
@storybook/angular(clean break approach)- Remove all webpack-specific dependencies
- Update build configuration for Vite
- OPTIONAL: Ensure TestBed API integration (from #31311)
Phase 2: CLI Integration
- Add
@storybook/angular-viteas scaffold option in Storybook CLI (mark it asin-preview) - Update CLI prompts to offer both webpack and Vite variants
- Create installation templates for the CLI
- Set default framework option for new Angular projects using Vite
Phase 3: Testing & CI/CD
- Create
angular-vite/default-tssandbox template in storybook-sandboxes - Ensure E2E tests are enabled for the new framework
- Integrate Chromatic testing against the sandbox
- Include in CI pipeline for continuous validation
Phase 4: Documentation
- Document framework differences between webpack and Vite variants
- Create migration guide from
@storybook/angularto@storybook/angular-vite - Update Framework support matrix
- Document setup and configuration specific to the Vite approach
- Note behavioral differences (Angular builders vs. Storybook CLI dev/build)
- Fix up the frameworks page (add angular vite, keep analog until SB11 but add deprecation notice in the code so we can find it)
Phase 5: Maintenance Strategy - after @storybook/angular-vite has established itself as a default
- Classify
@storybook/angularas legacy (no new features, critical bug fixes only) - Add deprecation notice to
@storybook/angulardocumentation - Establish support timeline for webpack variant
- Clarify relationship with
@analogjs/storybook-angular(point users to official package)
Followup dumping ground
Tasks on this list were listed as follow-ups on previous phases. Some may be QA and code smells, some may overlap with existing tracked issues, some may be actual bugs.
-
disableTelemetrymight be missing from code/frameworks/angular-vite/*-schema.json - Do a cursory check on
docs/writing-tests/integrations/vitest-addon/index.mdxanddocs/writing-tests/integrations/vitest-addon/migration-guide.mdx - Consider whether to add a @storybook/angular-vite:test-storybook builder in the future
Technical Details
Architecture Decisions
- Copy/Paste Approach: Renderer logic will be copied rather than extracted to a shared package, ensuring clean separation and independence from webpack-based code
- [OPTIONAL] TestBed API: Leverage the component creation improvements from #31311 as foundation
- Vite Configuration: Build upon Analog's proven Vite plugin architecture
Related Issues & PRs
- #31311 - Angular: Component creation with TestBed API
- #31088 - Angular framework modernization
@analogjs/storybook-angular- Reference implementation for Vite approach
Success Criteria
- ✅
@storybook/angular-vitepackage is available in npm - ✅ Storybook CLI offers the new framework as an option
- ✅ Angular-Vite sandbox is created and tested in CI
- ✅ All E2E and Chromatic tests pass
- ✅ Documentation clearly explains differences and migration paths
- ✅ Users report successful adoption without webpack-related issues
- ✅ No webpack dependencies required by
@storybook/angular-vite
Ownership & Discussion
- Collaborators: @brandonroberts, @valentinpalkovic
Timeline
To be determined based on available resources and priorities.
Notes
- The webpack-based
@storybook/angularwill continue to exist for backward compatibility, but will not receive new features - This is a major step forward for Angular developer experience in Storybook's ecosystem
Source: storybookjs/storybook