Storybook
A Storybook builder powered by Parcel
Install / Use
/learn @parcel-bundler/StorybookREADME
Storybook Builder Parcel
A Storybook Builder integration that uses Parcel as the bundler.
- Custom transformer to support React Fast Refresh in CSF story files. This enables you to edit your components or stories without losing state.
- Support for auto-generating controls and docs from TypeScript via react-docgen-typescript, with hot reloading when your types change.
- Enhances CSF with automatic annotation of original story source code and description
Setup
- Install the dependencies:
npm install --save-dev storybook-react-parcel @parcel/config-storybook
- Create a Parcel config file in your Storybook folder, e.g.
.storybook/.parcelrc:
{
"extends": "@parcel/config-storybook"
}
You can add additional Parcel configuration here if needed.
- Configure Storybook to use Parcel in
.storybook/main.js(or TS):
module.exports = {
// ...
framework: 'storybook-react-parcel'
};
See the example in this repo for more details.
Acknowledgements
The code in this repo is based on the official builder plugins for Webpack and Vite, initially ported to Parcel by Niklas Mischkulnig.
Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
